aclList
Client-side
 Server-side
 Shared
 This function returns a list of all the ACLs.
OOP Syntax Help! I don't understand this!
- Method: ACL.list(...)
Syntax
table aclList ( )Returns
- table: acl's list
Returns a table of all the ACLs. This table can be empty if no ACLs exist. It can also return false/nil if it failed for some reason.
Code Examples
 server   
 This example adds a command listacls which prints out a name list of all ACLs to the console.
local function printOutAllACLs(thePlayer)    -- get a table over all the ACLs    local allACLs = aclList()    -- if the table is empty (there are no ACLs)    if (#allACLs == 0) then        -- print out a message to console and exit function        return outputConsole("There are no ACLs!", thePlayer)    else        -- print out a list of the names        outputConsole("List of all ACLs (#"..#allACLs.."):", thePlayer)        for key, singleACL in ipairs(allACLs) do            local ACLName = aclGetName(singleACL)            outputConsole("- "..ACLName, thePlayer)        end   endendaddCommandHandler("listacls", printOutAllACLs)See Also
ACL Functions
- aclCreate
- aclDestroy
- aclCreateGroup
- aclDestroyGroup
- aclGet
- aclGetGroup
- aclGetName
- aclGetRight
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListACL
- aclGroupRemoveACL
- aclGroupListObjects
- aclGroupRemoveObject
- aclReload
- aclListRights
- aclObjectGetGroups
- aclList
- aclRemoveRight
- aclSetRight
- aclSave
- hasObjectPermissionTo
- isObjectInACLGroup
 
 