Author Topic: ULX can_target / inheritance question  (Read 1923 times)

0 Members and 2 Guests are viewing this topic.

Offline Nubz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
ULX can_target / inheritance question
« on: January 26, 2014, 06:04:15 PM »
Hello everyone! So, on my server, I have the following groups (From most powerful to least powerful):
-Owner
-Superadmin
-Admin
-Moderator
-Respected
-Member
-User

I wanted to have it set up so that each group could only target their own group, or groups below themselves. However, after reading about the subject on the forums, Moderators can still target Superadmins. Each group inherits from the group underneath, so I do not know if this is the problem or not. What am I doing wrong? Did i not understand inheritance, can_target?
« Last Edit: January 26, 2014, 07:42:14 PM by Nubz »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX can_target / inheritance question
« Reply #1 on: January 26, 2014, 06:10:44 PM »
For my sanity, and perhaps others, please just attach your gmod/data/ulib/groups.txt
I find I can personally read/verify that easier than an explanation.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline syn.

  • Jr. Member
  • **
  • Posts: 56
  • Karma: 6
  • Lua Padawan
    • SynGaming
Re: ULX can_target / inheritance question
« Reply #2 on: January 26, 2014, 06:28:58 PM »
I'm pretty sure doing !%groupabove in the can_target should work.
Ex: Moderator   Inherits from: Respected
                          Can Target:   !%Admin   
Lua Student

"The more you understand, the crazier you get."

Offline Nubz

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: ULX can_target / inheritance question
« Reply #3 on: January 26, 2014, 07:42:47 PM »
For my sanity, and perhaps others, please just attach your gmod/data/ulib/groups.txt
I find I can personally read/verify that easier than an explanation.

Sorry about that!
« Last Edit: January 26, 2014, 07:46:21 PM by Nubz »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX can_target / inheritance question
« Reply #4 on: January 26, 2014, 08:21:09 PM »
Sorry about that!
No worries, just a personal preference. It also allows us to verify things like the below that I saw.

Don't capitalize your groups. make group names all lower case, in name and inheritance, and can target.
I could have sworn Stick/Megiddo fixed that in XGUI allowing input of upper case group names.
Change all of them to lower case, then see if that fixes some of your issue.
Also, you don't need to specify a group inherit's "user". I'm 95% sure, by default, when no other access is inherited, "user" is inherited.
(my team can correct me on that if I'm wrong)

If the case sensitivity doesn't fix your issue, repost the groups.txt after the case-correction.

There's also a space in front of your can_target "!&owner" for superadmin.
That _might_ cause troubles, but I'm not sure.
« Last Edit: January 26, 2014, 08:27:45 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming