Advertisement:

Author Topic: Custom Permissions Based Off Group - Possible?  (Read 1866 times)

Offline Christopher R.

  • Semi-Newbie
  • *
  • Posts: 10
Custom Permissions Based Off Group - Possible?
« 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:

Code: [Select]
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)?

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Custom Permissions Based Off Group - Possible?
« Reply #1 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

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