aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_authz_internal.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_authz_internal.lua')
-rw-r--r--plugins/mod_authz_internal.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugins/mod_authz_internal.lua b/plugins/mod_authz_internal.lua
index 0f6e4873..3f5d6237 100644
--- a/plugins/mod_authz_internal.lua
+++ b/plugins/mod_authz_internal.lua
@@ -12,6 +12,11 @@ function get_user_roles(user)
return role_store:get(user);
end
+function set_user_roles(user, roles)
+ role_store:set(user, roles)
+ return true;
+end
+
function get_jid_roles(jid)
if admin_jids:contains(jid) then
return admin_role;
@@ -19,4 +24,6 @@ function get_jid_roles(jid)
return nil;
end
-
+function set_jid_roles(jid)
+ return false;
+end