From d9cfd2a9d4df42e139668b5a1d156347d2c0dc1a Mon Sep 17 00:00:00 2001 From: iAmShorty Date: Wed, 12 Mar 2014 11:01:18 +0100 Subject: [PATCH] [FIX] user earnings only visible as admin --- public/include/pages/account/earnings.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/include/pages/account/earnings.inc.php b/public/include/pages/account/earnings.inc.php index 03e6e48f..bf2d3566 100644 --- a/public/include/pages/account/earnings.inc.php +++ b/public/include/pages/account/earnings.inc.php @@ -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"); }