[FIX] user earnings only visible as admin
This commit is contained in:
parent
a431c0fc60
commit
d9cfd2a9d4
@ -2,7 +2,7 @@
|
|||||||
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
|
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
|
||||||
|
|
||||||
// Check user to ensure they are admin
|
// Check user to ensure they are admin
|
||||||
if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
|
if (!$user->isAuthenticated()) {
|
||||||
header("HTTP/1.1 404 Page not found");
|
header("HTTP/1.1 404 Page not found");
|
||||||
die("404 Page not found");
|
die("404 Page not found");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user