MIKI785 Posted March 18, 2012 Share Posted March 18, 2012 Hello, I'm little bit editing the 'admin' resource and I can't find where all the enabling and disabling is. I mean, it checks if you have permission to have some GUI element enabled, like tab 'Server'. In ACL you have so Tab 'Server' will be disabled. Where is the script that disables it? I want to make some new permissions and I need to see how it works. Link to comment
-ffs-Sniper Posted March 18, 2012 Share Posted March 18, 2012 The rights are being checked client side inside of the "/admin/client/admin_gui.lua" file. _guiCreateTab = guiCreateTab function guiCreateTab ( name, parent, right ) local tab = _guiCreateTab ( name, parent ) if ( tab ) then if ( right ) then right = "general.tab_"..right if ( not hasPermissionTo ( right ) ) then guiSetEnabled ( tab, false ) _guiprotected[right] = tab end end return tab end return false end Link to comment
MIKI785 Posted March 21, 2012 Author Share Posted March 21, 2012 I already found it myself, that's why I didn't reply, but thanks for your help anyway . Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now