ULX

Author Topic: ULX Groups Help  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

Offline Gupsy

  • Newbie
  • *
  • Posts: 5
  • Karma: 1
ULX Groups Help
« on: March 16, 2014, 06:12:44 PM »
Hey, I have a list of my groups here
-owner
-coowner
-manager
-superadmin
-admin
-mod
-user
now i have all the inheritance set up right like no one under me can do anything to me etc, But from manager up they can promote there self to owner and also demote me why is this and can i change this so that can only promote to there rank or lower

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX Groups Help
« Reply #1 on: March 16, 2014, 08:19:46 PM »
No. ULX doesn't handle groups in a hierarchy like that. (Unless I'm totally wrong.. someone correct me)

If someone has access to ulx adduser then they can add themselves to whatever group they want.

You could make it to where they can't target themselves, but that would affect all commands, not just adduser.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: ULX Groups Help
« Reply #2 on: March 16, 2014, 08:46:38 PM »
Pretty sure you can limit targeting 'by command'.
http://forums.ulyssesmod.net/index.php/topic,5346.0.html and the post it links to.
Though the example in the post linked from that FAQ shows preventing banning superadmins, I'd suppose you could replace 'ban' with adduser.
There's also the specific/only these groups "#" command.
I 'think' that ulx groupallow <group> "ulx adduser" "#group1,#group2,group3" would ONLY allow <group> to adduser on group1,2 and 3.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: ULX Groups Help
« Reply #3 on: March 16, 2014, 08:54:46 PM »
But it wouldn't restrict which groups they could add to right? They could still add users to the owner group.

It's always my philosophy that if you can't trust a user with a command, don't give it to them.

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given