News:

Wondering if this will always be free?  See why free is better.

Main Menu

Explaining a permission line?

Started by Matthew K., January 05, 2010, 08:33:06 PM

Previous topic - Next topic

Matthew K.

Hey everyone, finally developing my first mod that adds in a permission.

Could someone explain a permission line from ManagePermissions.php such as: 'access_mod_center' => array(false, 'maintenance', 'moderate_general'), for me?

I get access_mod_center, quite obviously is the name. I am assuming false means it's not selected by default, but am not positive on what the purpose of 'maintenance' and 'moderate_general' are for. (I take it they are sections of the permissions page?)

Thanks!
Labradoodle-360

Arantor

I actually wrote a complete guide on permissions for 2.0, as linked in the Important Customization Information sticky.

[WIP] Modding Documentation: Adding Permissions to 2.0
Holder of controversial views, all of which my own.


Matthew K.


live627

What does WIP mean?


Windows Internal Protocol? :P

Arantor

When I wrote that it was marked Work In Progress. Though it's pretty much complete, there are some tidying up bits I could do with it, such as the whole integrating turn on/off features from the admin panel where it hides permissions, though this may change slightly in 2.0 RC3 or beyond which is why I haven't documented that part yet...
Holder of controversial views, all of which my own.


Advertisement: