- Documentation
- Server functions
- aclListRights
Function
aclListRights
Returns the rights of a list, optionally of one kind only.
Syntax
table aclListRights(acl theACL [, string allowedType = nil])Arguments
theACLacl- The list.
allowedTypestring, optional = nil"function","command","resource"or"general".
Returns
A table of right names.
Example
for _, right in ipairs(aclListRights(aclGet("Moderator"), "command")) do
outputServerLog(right)
end