aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-16 15:24:44 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-16 15:24:44 +0000
commitdf2d4501684f62fc85d67946d01d8d7233c8745c (patch)
treebaaf5d514dc9870192d85dd8a3b81b732963382e /phpBB
parentfc57ccc4cf7c6c34f973366366b3c1719d4d0074 (diff)
downloadforums-df2d4501684f62fc85d67946d01d8d7233c8745c.tar
forums-df2d4501684f62fc85d67946d01d8d7233c8745c.tar.gz
forums-df2d4501684f62fc85d67946d01d8d7233c8745c.tar.bz2
forums-df2d4501684f62fc85d67946d01d8d7233c8745c.tar.xz
forums-df2d4501684f62fc85d67946d01d8d7233c8745c.zip
Removed check for admin level, not needed
git-svn-id: file:///svn/phpbb/trunk@676 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/modcp.php12
1 files 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']);
}