Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: DarKevin on December 10, 2015, 09:57:42 AM

Title: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: DarKevin 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?
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: Megiddo 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.
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: DarKevin 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.
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: Megiddo 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...

(http://s10.postimg.org/dachugy49/Garry_s_Mod.png)

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.
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: Stickly Man! 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
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: JamminR 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.
Title: Re: Give non-Admin (moderator, etc) access to UPS. IsUserGroup?
Post by: DarKevin on December 13, 2015, 05:34:45 AM
Lol ok, didn't know that UPS permissions were in there.
Thanks for the help!