ULX

Author Topic: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?  (Read 2581 times)

0 Members and 1 Guest are viewing this topic.

Offline DarKevin

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
  • sup
Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« on: December 10, 2015, 09:57:42 AM »
Hi,
I would like to give my moderators access to UPS.
There doesn't seem to be a conventional way like a config setting or file, where you can manage the access, so I tried messing with the code.
It seems that UPS uses the IsAdmin function for authentication, outside of ULX/ULIB.
Do I have to change server lua files for that? And how?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #1 on: December 10, 2015, 03:08:17 PM »
What do you want to give them permission to? UPS uses ULib access strings, just like ULX.
Experiencing God's grace one day at a time.

Offline DarKevin

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
  • sup
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #2 on: December 11, 2015, 07:01:11 AM »
Oh hi, you're the creator of UPS right? Cool :D

Well, in UPS there is this admin menu where you can see the names of all players, and click on them to delete the players props.
I would like to give my moderators access to that, so they don't have to run around the map with remover tool, when someone spammed.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #3 on: December 12, 2015, 05:48:15 AM »
The access string for that is "ups miscDeletionAccess". You could use `ulx groupallow moderator "ups misDeletionAccess"` to give the group permission. But, really, just use XGUI...



Note that if you hover over any of those lines, it will tell you what the access does.

For longtime forum members, they are probably laughing that I'd recommend against the console. The ease of XGUI has finally corrupted me.
« Last Edit: December 12, 2015, 05:50:09 AM by Megiddo »
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #4 on: December 12, 2015, 09:29:27 AM »
For longtime forum members, they are probably laughing that I'd recommend against the console. The ease of XGUI has finally corrupted me.

My long-term plan is finally coming to fruition! Muahahahah! ;D
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #5 on: December 12, 2015, 01:25:14 PM »
Not laughing!
Crying.
Until Gmod creates/allows for high contrast light on dark background themes on every menu, I have trouble playing.
Evil stickly, evil.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DarKevin

  • Newbie
  • *
  • Posts: 23
  • Karma: 1
  • sup
Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
« Reply #6 on: December 13, 2015, 05:34:45 AM »
Lol ok, didn't know that UPS permissions were in there.
Thanks for the help!