aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_authz_internal.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_authz_internal.lua b/plugins/mod_authz_internal.lua
index 7e01e689..1f2b3886 100644
--- a/plugins/mod_authz_internal.lua
+++ b/plugins/mod_authz_internal.lua
@@ -193,7 +193,7 @@ end
function user_can_assume_role(user, role_name)
local primary_role = get_user_role(user);
- if primary_role and primary_role.role_name == role_name then
+ if primary_role and primary_role.name == role_name then
return true;
end
local secondary_roles = get_user_secondary_roles(user);