Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Ahadawan - tammikuu 22, 2014, 10:37:34 AP

Otsikko: Can I hide action=groups but not action=mlist
Kirjoitti: Ahadawan - tammikuu 22, 2014, 10:37:34 AP
Hi,

I'm trying to figure out how I can hide the action=groups page from my members but not action=mlist? From what I can understand those two seems to be linked together in permissions, under view_mlist.
I can somewhat find my way around the files if I know what to look for, but this time I'm a little lost.

Edit:
In Groups.php (in sources), is it as simple as to change isAllowedTo('view_mlist'); to isAllowedTo('view_mlist2'); or something like that? And if so, how would I then securely add that permission to my site?



Using SMF 2.0.6.
Otsikko: Re: Can I hide action=groups but not action=mlist
Kirjoitti: margarett - tammikuu 22, 2014, 03:43:26 IP
Not sure if there aren't other implications, but it should work.

To create a new permission: http://www.simplemachines.org/community/index.php?topic=345127.0