mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 19:44:09 +02:00
FIX check if user has moderator permissions for the thread/forum
Without admin permissions (member of user class 254) it was not possible to delete a post in the forum. This fix add the threadId to the ajax query and fetchs the forum-moderator for the thread which will then checked against the user permissions/classes. I added also an additional error message, if something goes wrong.
This commit is contained in:
@@ -345,6 +345,7 @@ define("LAN_FORUM_8026", "Failed to unstick thread");
|
||||
define("LAN_FORUM_8027", "No action selected");
|
||||
define("LAN_FORUM_8028", "Return");
|
||||
define("LAN_FORUM_8029", "New topic created!");
|
||||
define("LAN_FORUM_8030", "Couldn't delete post (moderator permission needed)");
|
||||
|
||||
/* THIS WILL BE DELETED ONCE THE REWRITE IS DONE
|
||||
==================================================
|
||||
|
Reference in New Issue
Block a user