aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-20 13:10:47 +0200
committerKim Alvefur <zash@zash.se>2022-07-20 13:10:47 +0200
commita88c982ae232f85bbf30401aa7690dbccc482866 (patch)
tree5a1009c6d018a4069c56073b81b3d93f466646ad
parentcdd5608f4a42e7740536d09eeda14451924c9657 (diff)
downloadprosody-a88c982ae232f85bbf30401aa7690dbccc482866.tar.gz
prosody-a88c982ae232f85bbf30401aa7690dbccc482866.zip
core.usermanager: Add missing stub authz methods to global authz provider
Except, should we have a global authz provider at all?
-rw-r--r--core/usermanager.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index af82c940..ec782906 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -54,6 +54,13 @@ local global_authz_provider = {
end;
set_user_roles = function (user, roles) end; -- luacheck: ignore 212
set_jid_roles = function (jid, roles) end; -- luacheck: ignore 212
+
+ get_user_default_role = function (user) end; -- luacheck: ignore 212
+ get_users_with_role = function (role_name) end; -- luacheck: ignore 212
+ get_jid_role = function (jid) end; -- luacheck: ignore 212
+ set_jid_role = function (jid) end; -- luacheck: ignore 212
+ add_default_permission = function (role_name, action, policy) end; -- luacheck: ignore 212
+ get_role_info = function (role_name) end; -- luacheck: ignore 212
};
local provider_mt = { __index = new_null_provider() };