We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8afc997 commit 2757279Copy full SHA for 2757279
web/edit/user/index.php
@@ -23,7 +23,7 @@
23
}
24
25
// Prevent other users with admin privileges from editing properties of default 'admin' user
26
-if (($_SESSION['userContext'] == 'admin') && (isset($_SESSION['look']) && ($user == 'admin'))) {
+if (($_SESSION['userContext'] == 'admin') && (isset($_SESSION['look'])) && ($user == 'admin') || ($_SESSION['userContext'] == 'admin') && (!isset($_SESSION['look'])) && ($user == 'admin') && ($_SESSION['user'] != 'admin')) {
27
header("Location: /list/user/");
28
exit;
29
0 commit comments