Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Can I hide action=groups but not action=mlist

Aloittaja Ahadawan, tammikuu 22, 2014, 10:37:34 AP

« edellinen - seuraava »

Ahadawan

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.

margarett

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
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

LainaaOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: