1
0
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:
phibel
2018-10-03 15:56:37 +02:00
parent c644a8b9d2
commit f480064ba4
2 changed files with 7 additions and 2 deletions

View File

@@ -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();