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:
parent
dc810fea2d
commit
d384d98c11
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue