Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin users unable to see user profile when user is admin_disabled. #126

Open
jepke opened this issue Apr 3, 2022 · 0 comments
Open

Admin users unable to see user profile when user is admin_disabled. #126

jepke opened this issue Apr 3, 2022 · 0 comments

Comments

@jepke
Copy link
Contributor

jepke commented Apr 3, 2022

index d8cbbf2..5e6d12b 100644
--- a/header.php
+++ b/header.php
@@ -154,10 +154,9 @@ if (isset($_SESSION['username'])) {
     } else {
             $redirect_page = "unregistered.php";
     }
-
-    if (isset($enable_admin_dis) && $enable_admin_dis == "False" && $_SESSION['id'] <> $_SESSION['admin_id'])
+    if ((isset($enable_admin_dis) && $enable_admin_dis == "False") && !$_SESSION['poracle_admin'])
     {
-           $subs_clause .= " AND admin_disable = 0";
+           $subs_clause = " AND admin_disable = 0";
     }

     $sql = "SELECT * from humans WHERE id = '" . $_SESSION['id'] . "' ".@$subs_clause;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant