Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => SMF Feedback and Discussion => Aiheen aloitti: LiamTheDuck - maaliskuu 30, 2008, 08:34:40 AP

Otsikko: user-rights Development 0.1 Beta [please read all of the short text!]
Kirjoitti: LiamTheDuck - maaliskuu 30, 2008, 08:34:40 AP
Hey!

I thought an easier way to sort membergroups out was in user rights,
As on defualt:
a normal member would be 0
Mod = 1
G mod = 2
Admin = 3
Spy(secret admin) = 4
You can change this order in the admin panel

This doesnt really have to come on the forum, i thought this would b good to add a few stuff in your files wich would only apply to them,
i know there is a way, but i think this will be much cleaner...


How it works...
           
Say you only wanted the help button to only be veiwable by User-rights 1,
You would simply find the array, and add a new collumn called:
'UserRights' => ####
To make it only veiwable to one and 2, you would put:
'UserRights' => >2,
wich means anyone under UserRights 2 can see it
BUT
if you wanted, say.... 3 and 1.... you would do:
'UserRights' => 1-3,

so the - is a representive for 'and'

I will get on to this as its minor, and when it gets to version 1.0, I will make it non-manual and you will be able to do everything in the admin panel!

Please post comments!

**Pimper12**
Otsikko: Re: user-rights Development 0.1 Beta [please read all of the short text!]
Kirjoitti: Dannii - maaliskuu 30, 2008, 08:39:38 AP
How's that different from using groups to restrict access?
Otsikko: Re: user-rights Development 0.1 Beta [please read all of the short text!]
Kirjoitti: LiamTheDuck - maaliskuu 30, 2008, 08:41:10 AP
bit more cleaner and as i said, it will be changeble in admin panel unlike the one now
Otsikko: Re: user-rights Development 0.1 Beta [please read all of the short text!]
Kirjoitti: Kindred - maaliskuu 30, 2008, 08:46:31 AP
actually, that seems overly complicated to me...   and what about additional membergroups?  I have some membergroups on my system that have some moderator functions available to them, but not all...  so they don't fit in with any of your proposed categories...
Otsikko: Re: user-rights Development 0.1 Beta [please read all of the short text!]
Kirjoitti: LiamTheDuck - maaliskuu 30, 2008, 08:47:11 AP
see how much i fail!?