mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-21 23:13:43 +02:00
Removed check for admin level, not needed
git-svn-id: file:///svn/phpbb/trunk@676 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
fc57ccc4cf
commit
df2d450168
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user