mirror of
https://github.com/e107inc/e107.git
synced 2025-08-31 02:00:14 +02:00
#4659 forum main admin as silent moderator
- without displaying in moderator list (if they are not forum moderators directly) CLOSES #4659
This commit is contained in:
@@ -234,7 +234,7 @@ function init()
|
||||
}
|
||||
|
||||
$moderatorUserIds = $forum->getModeratorUserIdsByForumId($forumId);
|
||||
define('MODERATOR', (USER && in_array(USERID, $moderatorUserIds)));
|
||||
define('MODERATOR', (USER && in_array(USERID, $moderatorUserIds) || getperms('0')));
|
||||
|
||||
if(MODERATOR)
|
||||
{
|
||||
|
Reference in New Issue
Block a user