Acl: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 22: Line 22:
*[[aclListRights]]
*[[aclListRights]]
*[[aclRemoveRight]]
*[[aclRemoveRight]]
[[Category:Scripting Concepts]]

Revision as of 15:33, 14 June 2014

ACL or Access Control List is a set of rights grouped together to create a list, they are defined in the ACL.xml file as <acl> nodes. These ACLs can then be added to certain ACL Groups to grant or deny these groups specified permissions or acces to server scripting functions defined in the ACL. Example of an ACL:

<acl name="Example">
        <right name="general.ModifyOtherObjects" access="true" />
        <right name="function.startResource" access="true" />
        <right name="function.stopResource" access="true" />
        <right name="function.shutdown" access="false" />
        <right name="command.shutdown" access="false" />
</acl>

This creates ACL called Example and gives resources access to start/stop resources and modify other resources but denies access to shutting down the server. Players that are in group using this ACL will be denied access to shutdown command.

Related scripting functions