mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_authz_internal, usermanager: Rename to mod_authz_config
This commit is contained in:
parent
b177628d3c
commit
34abcc8bd5
2 changed files with 1 additions and 1 deletions
|
@ -1,16 +0,0 @@
|
|||
local normalize = require "util.jid".prep;
|
||||
local admin_jids = module:get_option_inherited_set("admins", {}) / normalize;
|
||||
local host = module.host;
|
||||
|
||||
local admin_role = { ["prosody:admin"] = true };
|
||||
|
||||
function get_user_roles(user)
|
||||
return get_jid_roles(user.."@"..host);
|
||||
end
|
||||
|
||||
function get_jid_roles(jid)
|
||||
if admin_jids:contains(jid) then
|
||||
return admin_role;
|
||||
end
|
||||
return nil;
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue