mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00: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
1 changed files with 2 additions and 10 deletions
|
@ -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…
Add table
Reference in a new issue