Jump to content

Problem in my admin panel !


Recommended Posts

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

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

  1. Shut down your server
  2. Remove ACL.XML via FTP or something similar
  3. 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
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

  1. Shut down your server
  2. Remove ACL.XML via FTP or something similar
  3. 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.

  1. Stop your admin panel /stop admin.
  2. Edit & Save your edited ACL
  3. 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 )

 

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...