Author Topic: Permissions Help  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Offline McSniper121

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
Permissions Help
« on: March 23, 2015, 09:50:33 AM »
So I know how to set it that if I don't want mods to touch admins and SAs I would do !&admin, but does Ulx know which group is greater than the other?
GTA 5 Online and DarkRP is life

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Permissions Help
« Reply #1 on: March 23, 2015, 10:00:54 AM »
The % is a group operator that obeys inheritance. For example, say you have the following groups in a linearly privileged order:

superadmin
admin
operator
respected
user

By default, respected's can_target should be "!%operator", which basically means: "respected can target any group that does not inherit from operator"- which means they can't target superadmin because it inherits from admin, which inherits from operator.

We have a '#' group operator that does not check for inheritance. If respected's can_target were "!#operator", then they could target admins and superadmins, other respecteds and users- just not operators.

Keep in mind that both of these cases are based on the fact that your inheritance tree doesn't branch (i.e. you have two or more groups that inherit from the same group). If you do have branches, then it's a bit more difficult to get permissions set up correctly.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline McSniper121

  • Newbie
  • *
  • Posts: 9
  • Karma: 1
Re: Permissions Help
« Reply #2 on: March 23, 2015, 10:10:26 AM »
Oh ok I see! Thank you!  ;D
GTA 5 Online and DarkRP is life