1
0
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:
phibel
2018-09-30 17:21:05 +02:00
parent 1d6a957793
commit 98213ec03c
3 changed files with 36 additions and 25 deletions

View File

@@ -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
==================================================