Ulysses Stuff > General Chat & Help and Support

Rank hierarchy issues

(1/2) > >>

Zellogi:
So, before I start, I'm not the most well versed in ULX. I looked up several guides on how to accomplish what it is I wanted, all of which failed. Before I tried doing this, my issue wasn't a thing, but now I must've mucked something up (and I don't know what), so here I am!

What I wanted to do: I wanted to give my admins access to "adduser" and "removeuser", but with limitations. I've seen threads about this and tried their solution and it didn't work for me. I wanted to give them access to adduser, but only with the option to target users, and add them to "trusted", and removeuser would act as the opposite: only able to target trusted to revoke it if they abuse it. I set the restrict groups to trusted so only trusted could be assigned, that part worked. However, admins could target ALL users with the adduser command, regardless of what setting I used in the restrict players section.

I thought this was a hierarchy problem with permission inheritance so I rearranged the inheritances from lowest (user) to highest (owner), and not only did that not fix my issue, a whole slew of other issues arose from it (admins being able to target superadmin-class users with commands they have access to, for example). I will upload the groups.txt from the server and if anyone can tell me where I went wrong with inheritances and the like, that would be awesome!

For anyone who's curious on the rank hierarchy from highest to lowest (and their ulx name in parenthesis):

* Owner (owner)
* Deputy Owner (deputy owner)
* Super Admin (superadmin)
* Manager (manager)
* Supreme VIP Admin (supreme vip admin)
* Premier VIP Admin (premier vip admin)
* VIP Admin (vip admin)
* Admin (admin)
* Supreme VIP Moderator (supreme vip moderator)
* Premier VIP Moderator (premier vip moderator)
* VIP Moderator (vip moderator)
* Moderator (moderator)
* Supreme VIP Trial Moderator (supreme vip trial)
* Premier VIP Trial Moderator (premier vip trial)
* VIP Trial Moderator (vip trial)
* Trial Moderator (trial)
* Supreme VIP (supreme vip)
* Premier VIP (premier vip)
* VIP (vip)
* Regular (regular)
* Trusted (trusted)
* Visitor (user)My ULib/ULX versions:
ULib v2.63
ULX v3.73

Game mode(s) I am having this problem on:
Sandbox

BlueNova:
Side note, I'm not sure it's the best idea to give group names spaces. Also it's generally advised against placing any group above superadmin.

JamminR:
"ulx debuginfo" from server console when a few various ranks are on, especially someone from the admin limited group.
Attach file to next post.

Zellogi:
Here's your debug dump as requested. Also I fixed the problem of admins targeting superadmins but they can still target themselves and other admins with adduser and removeuser.

JamminR:
Quick 30 second cursory glance, to prevent from modifying themselves, !^
I'll try to find time/search the discussions on this subject somewhere on our forums. I know it's been discussed.
(Fellow team and community members, if you have the answer off top of your head, feel free to pitch in - I myself have never gone as complex as modifying group permissions to specific targets)

I will say this, you've complicated your perms system. Though giving owner/deputy owner permissions manually works, you could have saved yourself lots of time by having them inherit superadmin, then just adding non-ULX required permissions.

Navigation

[0] Message Index

[#] Next page

Go to full version