ResolvePermission
Shared
boolean, string|nil Lyn.Role.ResolvePermission(string role_name, string permission)FunctionDescription
Like HasPermission, but also tells you which role in the inheritance chain decided the result.
Params
Returns
- Whether the permission is granted.
- The role that defined it.
Example:
local has, from = Lyn.Role.ResolvePermission("moderator", "kick")
-- has = true, from = "admin" (inherited)