- Documentation
- Server functions
- getResourceACLRequests
Function
getResourceACLRequests
Returns the rights a resource asks for in meta.xml (aclrequests in <info>). Each entry is a table with the right name and its state.
Syntax
table getResourceACLRequests(resource theResource)Arguments
theResourceresource- The resource.
Returns
A table of { name, access, pending }.
Example
for _, req in ipairs(getResourceACLRequests(getResourceFromName("admin"))) do
outputServerLog(req.name .. (req.pending and " (czeka)" or ""))
end