News:

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

Main Menu

Hiding guest permission checkbox

Started by Adrek, January 24, 2016, 11:50:54 AM

Previous topic - Next topic

Adrek

Hi, I added new permission with hook, and as addition there is option to set permission from mod settings page with:
$config_vars[] = array('permissions', 'MyNewPermission');

Can I hide 'Guests' on this list? I know that on regular permission page non guest permissions can be hidden with:
$context['non_guest_permissions'][] = 'MyNewPermission';

but is this possible on mod settings page?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Advertisement: