aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-08-18 14:07:54 +0200
committerKim Alvefur <zash@zash.se>2022-08-18 14:07:54 +0200
commit8bed557afd8266b7c5578608c35e973f42669772 (patch)
tree26e909f31b18d0ab4a35ead14b10bb49c2f26e97 /core/usermanager.lua
parentf75ac951b518b04fb6b5f425950cfb2a8c8bb67b (diff)
downloadprosody-8bed557afd8266b7c5578608c35e973f42669772.tar.gz
prosody-8bed557afd8266b7c5578608c35e973f42669772.zip
core.usermanager: Add scoped luacheck ignore rule to reduce clutter
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua23
1 files changed, 12 insertions, 11 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 4f15c302..03b27327 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -35,21 +35,22 @@ local function new_null_provider()
end
local fallback_authz_provider = {
- get_user_roles = function (user) end; --luacheck: ignore 212/user
- get_jids_with_role = function (role) end; --luacheck: ignore 212
+ -- luacheck: ignore 212
+ get_user_roles = function (user) end;
+ get_jids_with_role = function (role) end;
- get_user_role = function (user) end; -- luacheck: ignore 212
- set_user_role = function (user, roles) end; -- luacheck: ignore 212
+ get_user_role = function (user) end;
+ set_user_role = function (user, roles) end;
- add_user_secondary_role = function (user, host, role_name) end; --luacheck: ignore 212
- remove_user_secondary_role = function (user, host, role_name) end; --luacheck: ignore 212
+ add_user_secondary_role = function (user, host, role_name) end;
+ remove_user_secondary_role = function (user, host, role_name) end;
- get_jid_role = function (jid) end; -- luacheck: ignore 212
- set_jid_role = function (jid, role) end; -- luacheck: ignore 212
+ get_jid_role = function (jid) end;
+ set_jid_role = function (jid, role) end;
- get_users_with_role = function (role_name) end; -- luacheck: ignore 212
- add_default_permission = function (role_name, action, policy) end; -- luacheck: ignore 212
- get_role_by_name = function (role_name) end; -- luacheck: ignore 212
+ get_users_with_role = function (role_name) end;
+ add_default_permission = function (role_name, action, policy) end;
+ get_role_by_name = function (role_name) end;
};
local provider_mt = { __index = new_null_provider() };