Zie[E]D_)"U.R Posted August 16, 2017 Share Posted August 16, 2017 Hey Guys i have a problem in admin panel , wich is : every Acl group have access to some things that they dont have the right to access to ! for example , a moderator can add objects and remove objects in ACL (a moderator can easly remove a console account) i verified Acl rights on Acl.xml this is for moderator group <right name="function.aclGroupAddObject" access="false"></right> how can i fix it ??? Link to comment
Hoffmann Posted August 16, 2017 Share Posted August 16, 2017 (edited) I think, you should get original acl.xml file and admin resource, then edit acl as you want. This would take less time. Edited August 16, 2017 by NeverUnbeatable Link to comment
Zie[E]D_)"U.R Posted August 16, 2017 Author Share Posted August 16, 2017 16 minutes ago, NeverUnbeatable said: I think, you should get original acl.xml file and admin resource, then edit acl as you want. This would take less time. i did it , sitll doesnt work Link to comment
Overkillz Posted August 17, 2017 Share Posted August 17, 2017 Are you aware that you need to restart the server after editing ACL.XML manually ? Remember that you can get the original ACL.XML with the following steps Shut down your server Remove ACL.XML via FTP or something similar Start/Run the server again. After running on the server again, probailly you need to restart it again to add your account to ACL.XML Regards. Link to comment
N3xT Posted August 17, 2017 Share Posted August 17, 2017 6 hours ago, Overkillz said: Are you aware that you need to restart the server after editing ACL.XML manually ? Remember that you can get the original ACL.XML with the following steps Shut down your server Remove ACL.XML via FTP or something similar Start/Run the server again. After running on the server again, probailly you need to restart it again to add your account to ACL.XML Regards. He doesn't need to shutdown his server everytime editing the ACL. Stop your admin panel /stop admin. Edit & Save your edited ACL Use aclReload function then start your admin panel again /start admin Wiki example: function reloadACL ( source, command ) -- Check if they're an admin... if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source )), aclGetGroup ( "Admin" ) ) ) then local reload = aclReload() -- Reload the ACL if ( reload ) then -- Check it was reloaded successfully outputChatBox ( "ACL was successfully reloaded.", source, 255, 0, 0 ) -- If so, output it else -- If not, output it (line below) outputChatBox ( "An unknown error occured. Please check the ACL file exists.", source, 255, 0, 0 ) end else -- If they're not an admin, output it (below) outputChatBox ( "You must be an admin to use this command!", source, 255, 0, 0 ) end end addCommandHandler ( "reloadACL", reloadACL ) 1 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