Ulysses

General => Developers Corner => Topic started by: nathan736 on March 22, 2013, 08:38:37 AM

Title: permission flags?
Post by: nathan736 on March 22, 2013, 08:38:37 AM
in the ulx groups menu theres checkboxes for stuff like show hidden echo ect is this hard coded or is there a way to add more for developers who code there own guis  to use non hard coded if v.candothis then  do this
Title: Re: permission flags?
Post by: Megiddo on March 22, 2013, 10:13:03 AM
We try not to hard code anything in ULX in general.

To directly answer you, this is what you're looking for (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.registerAccess).
Title: Re: permission flags?
Post by: nathan736 on March 22, 2013, 11:46:48 AM
thanks ;) is there a example for this ? 
so
ucl.registerAccess(   access,groups,comment,category   )
would become
ucl.registerAccess( dothis,superadmin,"lets people do this"," yoloswag" )
now how would i check if some one has access from this ?
Title: Re: permission flags?
Post by: Megiddo on March 22, 2013, 12:26:18 PM
Why not look through ULX for examples? log.lua has some particularly simple usages of this and would answer your second question too.