2009-04-07, 07:47 PM
I can't reproduce this. Does your account have a secondary group associated with it?
[F] editpost.php issue with closed forums [R]
|
2009-04-07, 07:47 PM
I can't reproduce this. Does your account have a secondary group associated with it?
2009-04-08, 01:15 AM
Users with administrative permissions can use the 'Quick Edit' to edit a post in a locked forum, however the 'Full Edit' produces a 'Permission Denied' error. However, when users attempt to edit one of their posts in a locked forum with the 'Quick Edit', they too receive an error.
The admin permissions for Quick editing obviously aren't checked when a forum is locked.
good u
2009-04-08, 05:00 AM
A locked thread and a thread in a locked forum are not the same thing Imad Jomaa !
And no, I've no secondary group associated with my account. If you looked the PHP code posted on first page, you saw that usergroup, secondary group etc... won't change anything to the MyBB's response. If forum is closed, Mybb will answer "Permission denied", there's no other thing to find.
2009-04-08, 12:03 PM
Imad, here's an example for you here at MyBB.
Go to your post: http://community.mybboard.net/thread-402...#pid270043 If you click on full edit, it hits an error_no_permission, but you can still "quick edit" it and change the contents.
2009-04-08, 02:51 PM
(This post was last modified: 2009-04-08, 03:07 PM by Michael S..)
Try this: Open the file xmlhttp.php and find:
Below add: But if you ask me I would say that an admin should be able to edit posts even in a closed forum. An admin can also edit the subjects in closed forums so it seems to me there is a bug in editpost.php. Open the file and search for: Replace with: That way you will be able to edit posts using the editor even in closed forums.
2009-04-08, 03:08 PM
(This post was last modified: 2009-04-08, 03:09 PM by Imad Jomaa.)
(2009-04-08, 11:57 AM)Troll Wrote: A locked thread and a thread in a locked forum are not the same thing Imad Jomaa ! I apologize, for some reason I kept thinking you where talking about a locked thread when you clearly said a locked forum. Yes, you're right, a quick edit in a locked forum does work. My apologize, not too sure why I kept seeing a locked thread. ![]() ![]()
2009-04-09, 05:07 AM
Michael, that bit of code in your fix is already in there.
2009-04-09, 10:38 AM
I know but it does not apply to admins (and moderators) because of the condition mentioned above. If you want to forbid the editiing in closed forums in general you have to add the little piece of code I posted above (I already checked that this is working). But if you change it that way you also have to forbid to edit subjects which is possible for admins atm.But I honestly prefer the change in editpost.php. Why should an administrator not be allowed to edit posts in one of his own forums? (2009-04-08, 02:51 PM)Michael83 Wrote: But if you ask me I would say that an admin should be able to edit posts even in a closed forum. An admin can also edit the subjects in closed forums so it seems to me there is a bug in editpost.php. Open the file and search for: I have the same opinion. Also, personnally, I had already made the modification (exactly the same as you) your are proposing. If I'm reporting this bug, it's not for my purpose, it's for the community... But the fix in editpost.php only partially fixes the bug, certain moderation actions will stay unavailable. |
« Next Oldest | Next Newest »
|