News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

List Required For Member Administration Permissions

Started by Blinker, March 08, 2009, 07:41:00 PM

Previous topic - Next topic

Blinker

Hi guys

I'm getting some errors in my log when I go to Permissions in forum admin - see this post http://www.simplemachines.org/community/index.php?topic=90879.msg1966056#msg1966056

I was looking through some of the permissions for one of my membergroups and under member administration I noticed two check boxes with no entries next to them. I wonder if perhaps that could be causing the problem. It looks almost as though once upon a time a mod created two new entries and it was not completely uninstalled or something. If it's simply an edit to my custom theme then it wouldn't be causing errors.

Can someone please list all the permissions they have under member administration please?

This is what I have there at the moment:

Member administration

Moderate forum members    
Manage and assign membergroups    
Manage permissions    
Manage ban list    
Send a forum email to members
Blank Entry next to checkbox
Blank Entry next to checkbox


Thanks in advance.

Faded Glory

Mine are like yours only without the two extra boxes.

  Moderate forum members 
  Manage and assign membergroups 
  Manage permissions 
  Manage ban list 
  Send a forum email to members
Collection 2 for Spray sig!

Blinker

Thanks for that Faded Glory, appreciated.

BTW I forgot to mention I'm using 1.1.8.

JimM

Are the boxes checked?  I think you are correct in thinking that it was a mod that wasn't completely installed or uninstalled.  It looks like the language strings are missing in the Modifications.english.php file.
Jim "JimM" Moore
Former Support Specialist

Blinker

After months of those stupid permissions errors and hours of searching through code and mods I FINALLY figured out the problem. I thought I'd post it here for posterity...maybe it'll help some poor sucker like me in future.

The culprit was the Global Announcements mod.

When it installed it's code into the managepermissions.php file, it made an error.

It was supposed to insert 'global_announcements_admin' after 'send-mail' in the $non_guest_permissions = array(

Instead, it inserted it here:

'member_admin' => array(
            'moderate_forum' => false,
            'manage_membergroups' => false,
            'manage_permissions' => false,
            'manage_bans' => false,
            'send_mail' => false,
'global_announcements_admin'

Once I deleted it from the member admin array the errors disappeared along with the two blank entries next to the next extra checkboxes. I also added it to the non guest permissions array where it was supposed to be.

My god, what a nightmare. Glad the hunt is finally over! :)

JimM

Great, and thanks so much for posting your solution.  So many times we don't see those. :)
Jim "JimM" Moore
Former Support Specialist

Blinker

Quote from: JimM on April 25, 2009, 03:56:24 PM
Great, and thanks so much for posting your solution.

No worries Jim.

Quote from: JimM on April 25, 2009, 03:56:24 PMSo many times we don't see those. :)

I know, that's exactly why I posted it. Too often have I searched for (and found) a problem similar to mine where the OP has come back and said "nevermind, I fixed it" and I think "but how?" :)

Advertisement: