diff --git a/user-profile.php b/user-profile.php index dd7222f..e7d66fb 100644 --- a/user-profile.php +++ b/user-profile.php @@ -12,7 +12,7 @@ if ($_SESSION["userId"] <> "") { header("location: login.php"); } if ($_SESSION["isVendor"] == true) { - header("location: vendor-settings.php"); + header("location: vendor-dashboard.php"); } diff --git a/vendor-dashboard.php b/vendor-dashboard.php index 4223c08..9b16140 100644 --- a/vendor-dashboard.php +++ b/vendor-dashboard.php @@ -28,6 +28,11 @@ if (is_array($vendorOrderss)) { echo "Unknown type or no 'message' property found."; } +if ($_SESSION["isCustomer"] == true) { + header("location: user-profile.php"); +} + + ?>