aclGroupRemoveACL
Client-side
Server-side
Shared
The resource that's using this function needs the right to remove an acl.
OOP Syntax Help! I don't understand this!
- Method: aclgroup:removeACL(...)
Syntax
bool aclGroupRemoveACL ( aclgroup theGroup, acl theAcl )
Required Arguments
- theGroup: The group to remove the given ACL from.
- theAcl: The ACL to remove from the given group.
Returns
- bool: result
Returns true if the ACL was successfully removed from the ACL group, false/nil if it could not be removed for some reason, ie. either of the elements were invalid.
Code Examples
server
This example outputs to the console if the Admin acl was removed from the Moderator ACL Group.
addEventHandler("onResourceStart",resourceRoot,function() if (aclGroupRemoveACL(aclGetGroup("Moderator"),aclGet("Admin"))) then aclSave() outputConsole("The Admin acl was removed from the Moderator group.")-- If it was successfully removed else outputConsole("Unsuccessful... Admin might have been removed from the Moderator group before.")-- if it was removed before or didn't existed endend)
See Also
ACL Functions
- aclCreate
- aclCreateGroup
- aclDestroy
- aclDestroyGroup
- aclGet
- aclGetName
- aclGetRight
- aclGetGroup
- aclGroupAddACL
- aclGroupAddObject
- aclGroupGetName
- aclGroupList
- aclGroupListObjects
- aclGroupListACL
- aclGroupRemoveACL
- aclGroupRemoveObject
- aclList
- aclListRights
- aclObjectGetGroups
- aclReload
- aclRemoveRight
- aclSave
- aclSetRight
- hasObjectPermissionTo
- isObjectInACLGroup