Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Avoid on November 09, 2014, 06:01:57 AM
-
Hello there,
I have a quick question about the ulx kick/ban reasons.
For me, as a superadmin I get to have the following menu, where I can open a dropdown list with reasons: Dropbox-Link (https://www.dropbox.com/s/ql6mslhetr67rty/ARROW.png?dl=0)
But my moderators cannot see this menu, so where exactly is this permission set? Do I have to restrict the kick/ban reason string?
P.S.: Yes, I know there are two entries for AFK! :P
Thanks,
Avoid
-
I did a quick look through the permissions, and didn't find anything specifically for kick/ban reasons.
Have you (or your moderators) tried using "ulx ban" in console and seeing if the autocomplete works there too?
-
I did a quick look through the permissions, and didn't find anything specifically for kick/ban reasons.
Have you (or your moderators) tried using "ulx ban" in console and seeing if the autocomplete works there too?
Yes, they only get to type the {reason} string, autocomplete with the pre-set reasons do not work for them, but for me!
I removed ulx ban, as I do prefer using sourcebans for banning.
EDIT:
When I restrict the string argument to the reasons they get the dropdown menu, but of course typing any string is restricted, so they can only select the whitelisted strings, of course.
-
I'm curious- it's likely ULX is only sending those reasons if you have access to "ulx ban" as well. Do your other admins only have access to "ulx kick"?
-
I'm curious- it's likely ULX is only sending those reasons if you have access to "ulx ban" as well. Do your other admins only have access to "ulx kick"?
Yes, they do have access to ulx kick, but I removed everyones permission from ulx ban, as we use the sourcebans module instead.
Any way fixing this without granting them access to ulx ban?
EDIT:
So I found those two addDataType( "banreasons" ...) and common_kick_reasons, where exactly does it rely on ulx ban permissions?
Avoid
-
If you go to the group tab, click on say 'mod' click permissions and then click ulx kick it should say restrict reasons in the bottom ish right of xgui
-
If you go to the group tab, click on say 'mod' click permissions and then click ulx kick it should say restrict reasons in the bottom ish right of xgui
You didn't read properly:
When I restrict the string argument to the reasons they get the dropdown menu, but of course typing any string is restricted, so they can only select the whitelisted strings, of course.
-
I'm pretty sure that's exactly what I understood. Maybe I'm missing something. If you have reasons whitelisted they are the only options available.
-
Hmm, that is interesting. I've noticed that ULX sends them on PlayerInit and on UCLAuth:
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/base.lua#L79
But XGUI will only update them if they have access to ULX ban:
https://github.com/Nayruden/Ulysses/blob/master/ulx/lua/ulx/xgui/server/sv_settings.lua#L11
Theoretically, this should be fine- ULX should send the autocompletes needed for players that don't have access. Either way, you can try having XGUI send them to anyone regardless of their permissions by changing "ulx ban" to nil on the sv_settings.lua line #11, and see if that fixes the problem.
-
Thank you Stickly Man,
that was exactly the line I was looking for! :)