mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
usermanager: Include role_name in event for consistency with the 'removed' event
This commit is contained in:
parent
d384d98c11
commit
ccacf5acb3
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ local function add_user_secondary_role(user, host, role_name)
|
||||||
local role, err = hosts[host].authz.add_user_secondary_role(user, role_name);
|
local role, err = hosts[host].authz.add_user_secondary_role(user, role_name);
|
||||||
if role then
|
if role then
|
||||||
prosody.events.fire_event("user-role-added", {
|
prosody.events.fire_event("user-role-added", {
|
||||||
username = user, host = host, role = role;
|
username = user, host = host, role_name = role_name, role = role;
|
||||||
});
|
});
|
||||||
end
|
end
|
||||||
return role, err;
|
return role, err;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue