diff options
author | Jonas Schäfer <jonas@wielicki.name> | 2021-03-22 21:24:43 +0100 |
---|---|---|
committer | Jonas Schäfer <jonas@wielicki.name> | 2021-03-22 21:24:43 +0100 |
commit | 03d38b2a67ad7d210820d94bff9ca1b052e65ab6 (patch) | |
tree | 52368cfdc98e15e45a3a21883f27d006597b3c0a /plugins | |
parent | 6f0532b89f16874878dde97319d14970c535f5de (diff) | |
download | prosody-03d38b2a67ad7d210820d94bff9ca1b052e65ab6.tar.gz prosody-03d38b2a67ad7d210820d94bff9ca1b052e65ab6.zip |
mod_authz_internal: add support for setting roles of a local user
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_authz_internal.lua | 9 |
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 |