Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] editpost.php issue with closed forums [R]
#21
It comes down to what should be allowed in a closed forum. Is it every permission for every group that isn't allowed, or should an admin have limited powers still??
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
#22
By definition, the admin should have powers in every situation on a Bulletin Board. It's the system admin, it's his system, he must have the permissions to do what he wants, else, who will be able to do it ? Chuck Norris ?

The script is not supposed to say "No" to the admin...
#23
Have to agree. Let's say I move something to the closed forum, and then want to edit something offensive out ... what's my option?
#24
(2009-04-10, 08:17 AM)Bey Brad Wrote: Have to agree. Let's say I move something to the closed forum, and then want to edit something offensive out ... what's my option?

Quick edit it seems... Shy

In which case, the error_no_permission being thrown on full edit will be the thing that needs changed...
#25
I'll make the change in editpost.php
#26
@Ryan, I've prepared the fix Michael suggested and will commit it if you haven't already fixed this on your end.
#27
Hey...why not alter the error_no_permission function so that it just returns for admins...imho that solves all the issues at one time for admins not having permission and it also doesn't require changes all over the files to exclude admins.

Just a thought.
#28
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
#29
Ok Smile

Can we get the snippet of the finally chosen fix ?
#30
In editpost.php, find:

if($forum['open'] == 0 || $mybb->user['suspendposting'] == 1)
{
	error_no_permission();
}

and replace it with

if(($forum['open'] == 0 || $mybb->user['suspendposting'] == 1)) && $mybb->usergroup['cancp'] != 1)
{
	error_no_permission();
}

Doing this will allow Administrators access to full edit.


Forum Jump:


Users browsing this thread: 1 Guest(s)