Author Topic: Moderators can Ban me, the Owner.  (Read 4763 times)

0 Members and 1 Guest are viewing this topic.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Moderators can Ban me, the Owner.
« Reply #15 on: June 12, 2015, 02:25:20 PM »
Pre-pruned file sorted by inheritance if anyone wants it:
Code: [Select]
ULib.ucl.groups (#=11):
owner:
inherit_from = co-owner
co-owner:
can_target = !%owner
inherit_from = headadmin
headadmin:
can_target = !% co-owner
inherit_from = superadmin
superadmin:
can_target = !%superadmin
inherit_from = admin
admin:
can_target = !%superadmin
inherit_from = donatoradmin
donatoradmin:
can_target = !%admin
inherit_from = vipmoderator
vipmoderator:
can_target = !%donatoradmin
inherit_from = moderator
moderator:
can_target = !%vipmoderator
inherit_from = donatormoderator
donatormoderator:
can_target = !%moderator
inherit_from = donator
donator:
can_target = !%donatormoderator
inherit_from = user
user:
can_target = !%donator
bw81@ulysses-forums ~ % whoami
Homepage

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Moderators can Ban me, the Owner.
« Reply #16 on: June 12, 2015, 02:29:30 PM »
oh dear....superadmin isn't the highest..

Code: [Select]
headadmin:
can_target = !% co-owner
inherit_from = superadmin

Not sure if this is a typo on Bytewave's part, but if it's not, then that's a small problem you should fix.
« Last Edit: June 12, 2015, 02:32:12 PM by syst3M4TiK »
Once you get to know me, you'll find you'll have never met me at all.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Moderators can Ban me, the Owner.
« Reply #17 on: June 12, 2015, 06:21:48 PM »
oh dear....superadmin isn't the highest..
Yeah, I internally screamed at that when I saw it.

Not sure if this is a typo on Bytewave's part, but if it's not, then that's a small problem you should fix.
That came directly out of the file—I didn't touch any part of it besides removing extraneous data.
bw81@ulysses-forums ~ % whoami
Homepage

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Moderators can Ban me, the Owner.
« Reply #18 on: June 12, 2015, 08:21:47 PM »
Ouch. My eyes.
Remove the space in your can_target line of your headadmin group.
That's only a starting point. Likely won't fix.
I don't have time (or patience right now) to dig deeper, but, I've simplified your listing of your tree for you and others to look at below.
Some biggies I notice after list is simplified.
-Space in can_target of headadmin not co-owner.
-Superadmin can_target not themselves?
Code: [Select]
        owner:
                        15      =       ulx banip
                        16      =       ulx cexec
                        38      =       ulx rcon
                inherit_from    =       co-owner
        co-owner:
                can_target      =       !%owner
                inherit_from    =       headadmin
headadmin:
                        6       =       ulx unban
                can_target      =       !% co-owner
                inherit_from    =       superadmin
         superadmin:
                        7       =       ulx ban
                        8       =       ulx banid
                can_target      =       !%superadmin
                inherit_from    =       admin
        admin:
                allow:
                        3       =       ulx ban
                        5       =       ulx banid
                can_target      =       !%superadmin
                inherit_from    =       donatoradmin
        donatoradmin:
                can_target      =       !%admin
                        ulx ban =       * 1440
                inherit_from    =       vipmoderator
        vipmoderator:
                 allow:
                        1       =       ulx ban
                        2       =       ulx banid
                can_target      =       !%donatoradmin
               inherit_from    =       moderator
        moderator:
                allow:
                        1       =       ulx ban
                        2       =       ulx banid
                can_target      =       !%vipmoderator
                inherit_from    =       donatormoderator
        donatormoderator:
                allow:
                        1       =       ulx banid
                        ulx ban =       * 2880
                can_target      =       !%moderator
                inherit_from    =       donator
        donator:
                can_target      =       !%donatormoderator
                inherit_from    =       user
user:
                can_target      =       !%donator
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Desire

  • Jr. Member
  • **
  • Posts: 51
  • Karma: -4
Re: Moderators can Ban me, the Owner.
« Reply #19 on: June 14, 2015, 02:16:33 AM »
I appreciate your guys work. How would I make superadmin the highest but still have owner as the only rank accessible? I'm honestly surprised that no one actually found out about this within the past 2 years.. That's just crazy. Thanks again for the responses. ;)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Moderators can Ban me, the Owner.
« Reply #20 on: June 19, 2015, 09:09:24 PM »
Uh, as Gmod devs, we've known about this a long time, and overall totally disagree with having custom groups "higher" than superadmin.
You'd have to go through a lot of work using inheritance and can_target.
But, as stated in the linked post, many scripts not designed for ULib or DarkRP (which is why I'm guessing you think you need a owner group) might not see you as superadmin
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming