Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: [TS] mindfulhacker on January 25, 2015, 07:06:29 AM

Title: Set a usergroup as 'admin'
Post by: [TS] mindfulhacker on January 25, 2015, 07:06:29 AM
I have multiple variations of my staff groups, eg Admin and Admin+.

However, those in Admin+ cannot use admin tools, such as FPP.

Is there any way to set my Admin+ group as 'admin', allowing the IsAdmin() to work?
Title: Re: Set a usergroup as 'admin'
Post by: Bytewave on January 25, 2015, 08:06:57 AM
You'll probably want to look into your inheritance tree. From the sounds of things, you have that set up wrong.
Title: Re: Set a usergroup as 'admin'
Post by: [TS] mindfulhacker on January 25, 2015, 08:22:07 AM
I don't believe I have done it wrong - It is exactly how I would like.

I have 2 'trees' of inheritance.

The Donator Tree:

And the Regular Tree:


This is so non-donor staff do not use the donator jobs, etc.

Title: Re: Set a usergroup as 'admin'
Post by: Bytewave on January 25, 2015, 08:32:10 AM
Going loosely off this FAQ thread (http://forums.ulyssesmod.net/index.php/topic,5346.0.html), forked inheritance trees usually cause problems with can_target. Seeing as none of the groups you've made inherit from admin or a group which inherits from admin... you aren't gonna get very far.
Title: Re: Set a usergroup as 'admin'
Post by: MrPresident on January 25, 2015, 11:39:06 AM
for IsAdmin to work you need to inherit from Admin.
None of your groups inherits Admin so that's why it's not working.
Title: Re: Set a usergroup as 'admin'
Post by: JamminR on January 25, 2015, 01:29:15 PM
"Admin" is also not the same as "admin".
Lua is case sensitive.
Title: Re: Set a usergroup as 'admin'
Post by: MrPresident on January 25, 2015, 04:04:40 PM
This is true. Another reason why in general you should just keep all of your group names lowercase.