mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
FIX allow moderators to edit posts from other users
This commit is contained in:
@@ -66,8 +66,9 @@ class forum_post_handler
|
||||
$this->id = (int) $_GET['id']; // forum thread/topic id.
|
||||
$this->post = (int) $_GET['post']; // post ID if needed.
|
||||
|
||||
define('MODERATOR', USER && $this->forumObj->isModerator(USERID));
|
||||
|
||||
$moderatorUserIds = $forum->getModeratorUserIdsByPostId($this->post);
|
||||
define('MODERATOR', (USER && in_array(USERID, $moderatorUserIds)));
|
||||
|
||||
|
||||
$this->data = $this->processGet();
|
||||
|
Reference in New Issue
Block a user