Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: SAFAD on December 31, 2009, 03:46:42 PM

Title: Less Permission For Some Admins
Post by: SAFAD on December 31, 2009, 03:46:42 PM
Hi
I Need To Now How To Make A Less Permission For Some Admins
Ex: I Don't Want Admin N1 To Upload Mods Or Themes
Or Not Allowing Him TO Enter Maintenace Things ?
Title: Re: Less Permission For Some Admins
Post by: hadesflames on December 31, 2009, 03:48:17 PM
You can't really restrict permissions from admins. You can make another user group that has all permissions except the ones you don't want the user to be able to do.
Title: Re: Less Permission For Some Admins
Post by: SAFAD on December 31, 2009, 03:50:23 PM
Hmmmmmm
That Was i AFraid From
Title: Re: Less Permission For Some Admins
Post by: live627 on December 31, 2009, 03:54:33 PM
Add a membergroup and assign it the permission group Maintenance
Title: Re: Less Permission For Some Admins
Post by: Arantor on December 31, 2009, 08:42:51 PM
Or you modify allowedTo() itself if you're brave...
Title: Re: Less Permission For Some Admins
Post by: SAFAD on January 01, 2010, 03:12:36 AM
Hell Yea I Am Breave
Hey Arni Move This To Custimisation Forum
So
How Can I Get UserId From Cookies Or Sessions ?
i have a better idea ;)
Title: Re: Less Permission For Some Admins
Post by: Arantor on January 01, 2010, 07:58:34 AM
Moved :)

Simply put, you don't touch that. What are you planning on doing?