Author Topic: Trial Mods and Moderators considered as admins???  (Read 4699 times)

0 Members and 4 Guests are viewing this topic.

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Trial Mods and Moderators considered as admins???
« on: August 01, 2016, 01:49:27 PM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console):
ULib v2.61d (06/12/16)
ULX v3.71d (07/02/16)

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

Lua errors shown in console, if any:
Code: [Select]
<insert errors here>

So what my real issue here is the fact that Moderators and Trial Mods are able to spawn in weapons and entities when I set the settings in settings.lua to admin only for both. I don't understand why, but they're being considered admins (ran a simple line on an expression 2 code to figure that out). How do I set it to so they're not considered admins?

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Trial Mods and Moderators considered as admins???
« Reply #1 on: August 01, 2016, 02:07:16 PM »
How is your inheritance tree set up? If moderators inherit from admin, they will be considered admin by IsAdmin().
bw81@ulysses-forums ~ % whoami
Homepage

Offline .gdraw

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Steam
Re: Trial Mods and Moderators considered as admins???
« Reply #2 on: August 01, 2016, 02:46:01 PM »
Making them inherit from user (or whatever you'd like, just not admin) and they shouldn't be considered an admin.

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Trial Mods and Moderators considered as admins???
« Reply #3 on: August 07, 2016, 08:22:25 AM »
How is your inheritance tree set up? If moderators inherit from admin, they will be considered admin by IsAdmin().

superadmin
Co-Owner
Superadmin
Head-Admin
admin
Moderator
TrialMod
trusted
user

Ranks inherit from the one below each other (i.e. Head-Admin inherits admin, admin inherits Moderator, etc.)

Making them inherit from user (or whatever you'd like, just not admin) and they shouldn't be considered an admin.

They do inherit admin.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Trial Mods and Moderators considered as admins???
« Reply #4 on: August 07, 2016, 10:15:37 AM »
superadmin
Co-Owner
Superadmin
Head-Admin
admin
Moderator
TrialMod
trusted
user

From your example description, you state one inherits the next below.
If your script is set for admin only, then the groups below admin in your list should NOT be able to spawn/do admin stuff.

However, you then state;
They do inherit admin.

Which is it?? Does your inheritance tree look like your list top to bottom, or do Moderator and Trial-mod inherit admin.
If they inherit admin, that is why they can spawn.
If they do not inherit admin, it's possible you have an issue with Fadmin or another conflicting addon.
Have you disabled Fadmin?

While your server is running, with a Moderator or trial mod on, please run "ulx debuginfo" from your server console.
It will output a file and tell you where it did.
Attach that file (using the attachments and other options link) to your next post.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline .gdraw

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
    • Steam
Re: Trial Mods and Moderators considered as admins???
« Reply #5 on: August 07, 2016, 03:16:44 PM »
-snip

Then make them not inherit Admin, and your problem is solved.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Trial Mods and Moderators considered as admins???
« Reply #6 on: August 09, 2016, 07:56:12 AM »
The easiest way to detect if you have branches in your inheritance tree is to run this command on your SERVER console:
Code: [Select]
PrintTable( ULib.ucl.getInheritanceTree() )
Alternately, you could run this ulx command from your client:
Code: [Select]
ulx luarun =ULib.ucl.getInheritanceTree()
Paste the result here, and we can help you analyze it.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Trial Mods and Moderators considered as admins???
« Reply #7 on: August 13, 2016, 10:04:53 AM »
The easiest way to detect if you have branches in your inheritance tree is to run this command on your SERVER console:
Code: [Select]
PrintTable( ULib.ucl.getInheritanceTree() )
Alternately, you could run this ulx command from your client:
Code: [Select]
ulx luarun =ULib.ucl.getInheritanceTree()
Paste the result here, and we can help you analyze it.

Sorry for the late reply(ies) I'm very busy going back and forth with things.

Result:
user:
   donator:
   trusted:
      trialmod:
         moderator:
            admin:
               superadmin:
                  Head-Admin:
                     Co-Owner:
                        owner:
   noaccess:
   veteran:

Exactly from console.

Then make them not inherit Admin, and your problem is solved.

My mistake. I meant to say they do not inherit Admin.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Trial Mods and Moderators considered as admins???
« Reply #8 on: August 13, 2016, 01:05:01 PM »
Is your "trusted" group also able to spawn admin only things?
Experiencing God's grace one day at a time.

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Trial Mods and Moderators considered as admins???
« Reply #9 on: August 14, 2016, 09:48:18 AM »
Is your "trusted" group also able to spawn admin only things?

No.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Trial Mods and Moderators considered as admins???
« Reply #10 on: August 14, 2016, 12:45:46 PM »
The best I can figure is that you have another addon changing the definition of "IsAdmin". You could easily confirm this by running your server with only ULX and ULib (no other addons).
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Trial Mods and Moderators considered as admins???
« Reply #11 on: August 14, 2016, 01:52:53 PM »
As you have DarkRP, I'd start with disabling FAdmin - it's been known to cause group conflicts with that you specify using ULX.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Trial Mods and Moderators considered as admins???
« Reply #12 on: August 14, 2016, 04:13:51 PM »
As you have DarkRP, I'd start with disabling FAdmin - it's been known to cause group conflicts with that you specify using ULX.

What is the addon folder for FAdmin called? Or how would I disable it? I'm not too familiar with FAdmin and am not a big fan of it either.

The best I can figure is that you have another addon changing the definition of "IsAdmin". You could easily confirm this by running your server with only ULX and ULib (no other addons).

Where can I find said addon?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Trial Mods and Moderators considered as admins???
« Reply #13 on: August 14, 2016, 07:36:46 PM »
What is the addon folder for FAdmin called? Or how would I disable it? I'm not too familiar with FAdmin and am not a big fan of it either.
See our FAQs.
https://forums.ulyssesmod.net/index.php/topic,5665.0.html
If that isn't clear or instructions have changed since we made that answer, you'll need to go to the DarkRP forums and wiki to find more answers

Where can I find said addon?
If disable of Fadmin doesn't help, you'll need to remove all addons but ulx and ULib, then add back one or two at a time and restart the server after each.
Once you've added back the offending addon, you'll know.

It's still possible you have can_target broken too.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Vaga Bond

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Trial Mods and Moderators considered as admins???
« Reply #14 on: August 21, 2016, 12:15:34 PM »
See our FAQs.
https://forums.ulyssesmod.net/index.php/topic,5665.0.html
If that isn't clear or instructions have changed since we made that answer, you'll need to go to the DarkRP forums and wiki to find more answers
If disable of Fadmin doesn't help, you'll need to remove all addons but ulx and ULib, then add back one or two at a time and restart the server after each.
Once you've added back the offending addon, you'll know.

It's still possible you have can_target broken too.

Sorry for the late reply.

I have disabled FAdmin and it fixed the targetting. Thanks for the help!