Mercurial > prosody-hg
comparison core/usermanager.lua @ 12653:e4a412a54462
core.usermanager: Add missing stub authz methods to global authz provider
Except, should we have a global authz provider at all?
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 20 Jul 2022 13:10:47 +0200 |
| parents | f299e570a0fe |
| children | f3dbbc7655e6 |
comparison
equal
deleted
inserted
replaced
| 12652:30e2a0107217 | 12653:e4a412a54462 |
|---|---|
| 52 if role ~= "prosody:admin" then return {}; end | 52 if role ~= "prosody:admin" then return {}; end |
| 53 return it.to_array(global_admins); | 53 return it.to_array(global_admins); |
| 54 end; | 54 end; |
| 55 set_user_roles = function (user, roles) end; -- luacheck: ignore 212 | 55 set_user_roles = function (user, roles) end; -- luacheck: ignore 212 |
| 56 set_jid_roles = function (jid, roles) end; -- luacheck: ignore 212 | 56 set_jid_roles = function (jid, roles) end; -- luacheck: ignore 212 |
| 57 | |
| 58 get_user_default_role = function (user) end; -- luacheck: ignore 212 | |
| 59 get_users_with_role = function (role_name) end; -- luacheck: ignore 212 | |
| 60 get_jid_role = function (jid) end; -- luacheck: ignore 212 | |
| 61 set_jid_role = function (jid) end; -- luacheck: ignore 212 | |
| 62 add_default_permission = function (role_name, action, policy) end; -- luacheck: ignore 212 | |
| 63 get_role_info = function (role_name) end; -- luacheck: ignore 212 | |
| 57 }; | 64 }; |
| 58 | 65 |
| 59 local provider_mt = { __index = new_null_provider() }; | 66 local provider_mt = { __index = new_null_provider() }; |
| 60 | 67 |
| 61 local function initialize_host(host) | 68 local function initialize_host(host) |
