[FIX] user earnings only visible as admin

This commit is contained in:
iAmShorty 2014-03-12 11:01:18 +01:00
parent a431c0fc60
commit d9cfd2a9d4

View File

@ -2,7 +2,7 @@
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// 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");
die("404 Page not found");
}