mod_authz_internal: add support for setting roles of a local user

This commit is contained in:
Jonas Schäfer 2021-03-22 21:24:43 +01:00
parent 6f0532b89f
commit 03d38b2a67

View file

@ -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