aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-02-13 15:31:37 +0000
committerMatthew Wild <mwild1@gmail.com>2025-02-13 15:31:37 +0000
commitccacf5acb30b7908098945688f1a1227663278d5 (patch)
treeea2286202de76f66064a0f9088bf3412b5112459
parentd384d98c110c520e7c1cf01ef182afb77580a9d8 (diff)
downloadprosody-ccacf5acb30b7908098945688f1a1227663278d5.tar.gz
prosody-ccacf5acb30b7908098945688f1a1227663278d5.zip
usermanager: Include role_name in event for consistency with the 'removed' event
-rw-r--r--core/usermanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 793e7af6..3cd6f16d 100644
--- a/core/usermanager.lua
+++ b/core/usermanager.lua
@@ -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);
if role then
prosody.events.fire_event("user-role-added", {
- username = user, host = host, role = role;
+ username = user, host = host, role_name = role_name, role = role;
});
end
return role, err;