Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Christopher R. on September 20, 2011, 05:25:03 PM

Title: Custom Permissions Based Off Group - Possible?
Post by: Christopher R. on September 20, 2011, 05:25:03 PM
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)?
Title: Re: Custom Permissions Based Off Group - Possible?
Post by: Kays on September 20, 2011, 05:56:09 PM
Hi, welcome to SMF. :)

Check out this mod. It should do what you want.

http://custom.simplemachines.org/mods/index.php?mod=2930