aclGroupAddACL
Client-side
 Server-side
 Shared
 This function adds the given ACL to the given ACL group. This makes the resources and players in the given ACL group have access to what's specified in the given ACL. The rights for something in the different ACL's in a group are OR-ed together, which means if one ACL gives access to something, this ACL group will have access to that.
OOP Syntax Help! I don't understand this!
- Method: aclgroup:addACL(...)
Syntax
bool aclGroupAddACL ( aclgroup theGroup, acl theAcl )Required Arguments
Returns
- bool: result
Returns true if the ACL could be successfully added to the ACL group, false/nil if either of the elements are invalid, the ACL is already in that group or if something else goes wrong.
Code Examples
 server   
 This example adds a command addAclGroup with which you can easily add new access control lists to specified acl Groups.
local function addAclGroup(thePlayer, commandName, groupName, aclName)    if (not groupName or not aclName) then -- Was the group name and ACL provided?        outputChatBox("You must provide both the group name and the ACL!", thePlayer, 255, 255, 255)        return    end
    local acl = aclGet(aclName)    if (acl) then -- Does an ACL with that name exist?        local group = aclGetGroup(groupName)        if (group) then -- Does a group with that name exist?            aclGroupAddACL(group, acl)            aclSave()        else            outputChatBox("Group with the name "..groupName.." does not exist", thePlayer, 255, 255, 255)        end    else        outputChatBox("ACL "..aclName.." does not exist", thePlayer, 255, 255, 255)    endendaddCommandHandler("addAclGroup", addAclGroup)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
 
 