From df2d4501684f62fc85d67946d01d8d7233c8745c Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 16 Jul 2001 15:24:44 +0000 Subject: [PATCH] Removed check for admin level, not needed git-svn-id: file:///svn/phpbb/trunk@676 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/modcp.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/phpBB/modcp.php b/phpBB/modcp.php index a51f0e285d..230063afc3 100644 --- a/phpBB/modcp.php +++ b/phpBB/modcp.php @@ -81,22 +81,14 @@ init_userprefs($userdata); // $is_auth = auth(AUTH_ALL, $forum_id, $userdata); - -if($is_auth['auth_mod'] || $is_auth['auth_admin']) -{ - $is_mod = TRUE; -} -else -{ - $is_mod = FALSE; -} +$is_mod = ( $is_auth['auth_mod'] ) ? TRUE : FALSE; // // End Auth Check // if(!$is_mod) { - message_die(CRITICAL_MESSAGE, $lang['Not_Moderator'], $lang['Not_Authorised'], __LINE__, __FILE__); + message_die(GENERAL_MESSAGE, $lang['Not_Moderator'], $lang['Not_Authorised']); }