1
0
Fork 0
mirror of https://github.com/bjc/prosody.git synced 2025-04-03 21:27:38 +03:00

mod_authz_internal: Fix error messages

This commit is contained in:
Matthew Wild 2025-02-13 15:31:14 +00:00
parent dc810fea2d
commit d384d98c11

View file

@ -161,7 +161,7 @@ end
function set_user_role(user, role_name)
local role = role_registry[role_name];
if not role then
return error("Cannot assign default user an unknown role: "..tostring(role_name));
return error("Cannot assign user an unknown role: "..tostring(role_name));
end
local keys_update = {
_default = role_name;
@ -182,7 +182,7 @@ end
function add_user_secondary_role(user, role_name)
local role = role_registry[role_name];
if not role then
return error("Cannot assign default user an unknown role: "..tostring(role_name));
return error("Cannot assign user an unknown role: "..tostring(role_name));
end
local ok, err = role_map_store:set(user, role_name, true);
if not ok then