News:

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

Main Menu

Custom Permissions Based Off Group - Possible?

Started by Christopher R., September 20, 2011, 05:25:03 PM

Previous topic - Next topic

Christopher R.

I'm pretty new to SMF coding and I've been using this in my code to make sure the user is an administrator:

if($context['allow_admin'])

However, I don't want to give everyone administrator powers just so they can use my page. Is there a way I can have this go based off user group (or something similar instead)?

Kays


If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Advertisement: