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 1f3692e commit 1c0214dCopy full SHA for 1c0214d
web/list/user/index.php
@@ -5,6 +5,12 @@
5
// Main include
6
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
7
8
+// Do not show the users list for regular users
9
+if ($_SESSION['userContext'] === 'user') {
10
+ header("Location: /login/");
11
+ exit;
12
+}
13
+
14
// Do not show the users list if user is impersonating another user
15
if (isset($_SESSION['look'])) {
16
header("Location: /login/");
0 commit comments