- Documentation
- Permissions (ACL)
Category
Permissions (ACL)
All Lua functions and events in the Permissions (ACL) category, on the server and the client.
Server functions 26
aclCreates an access control list (ACL) with the given name. A list holds rights, and groups connect lists with players and resources.Create aclSavestores the changes.aclCreates a permission group. Add lists (Create Group aclGroupAddACL) and objects (aclGroupAddObject) to the group.aclDeletes an access list and detaches it from groups.Destroy aclDeletes a permission group.Destroy Group aclReturns the access list with the given name.Get aclReturns the group with the given name.Get Group aclReturns the access list name.Get Name aclChecks whether a list grants a right. Also returnsGet Right falsewhen there is no entry.aclAdds an access list to a group.Group Add ACL aclAdds an object to a group: the stringGroup Add Object "user.accountname","resource.resourcename", a player or a resource.aclReturns the group name.Group Get Name aclReturns all permission groups.Group List aclReturns the access lists belonging to a group.Group List ACL aclReturns the objects belonging to a group (e.g.Group List Objects "user.jan").aclDetaches an access list from a group.Group Remove ACL aclRemoves an object from a group.Group Remove Object aclChecks whether there are ACL changes not yet saved to disk.Has Unsaved Changes aclReturns all access lists.List aclReturns the rights of a list, optionally of one kind only.List Rights aclReturns the groups an object (player, account or resource) belongs to.Object Get Groups aclReloads the ACL from disk, discarding unsaved changes.Reload aclRemoves a right entry from a list.Remove Right aclSaves the ACL toSave acl.jsonin the server folder.aclSets a right on a list. Right names:Set Right "command.name","function.name","resource.name"or your own ("general.name"). The fourth argument sets an expiry.hasChecks whether an object has a right. It first looks at the ACL lists of the object's groups; if none has an entry, theObject Permission To admins.xmllevels decide, and finally the default value.isChecks whether an object belongs to a permission group (created by script or from theObject In ACLGroup admins.xmllevels).