1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-29 01:00:20 +02:00

Merge pull request #4730 from Jimmi08/master

Closes #4659 forum main admin as silent moderator
This commit is contained in:
Cameron
2022-04-01 10:57:58 -07:00
committed by GitHub
4 changed files with 4 additions and 5 deletions

View File

@@ -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)
{