From a88c982ae232f85bbf30401aa7690dbccc482866 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 20 Jul 2022 13:10:47 +0200 Subject: core.usermanager: Add missing stub authz methods to global authz provider Except, should we have a global authz provider at all? --- core/usermanager.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core') 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() }; -- cgit v1.2.3