aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-05-06 17:09:06 +0100
committerMatthew Wild <mwild1@gmail.com>2022-05-06 17:09:06 +0100
commitc9dc1c903a80649dadf2d56786266307c23d7b63 (patch)
tree39bf6c926d5ba375802b7b2c64fdcd8980270edc /plugins
parentb58b7a3cb08b6ccd6b4803102a9e14491c4d9882 (diff)
parentaad451c07e02e83d5da4fbd4d4d9d8a9a54b8176 (diff)
downloadprosody-c9dc1c903a80649dadf2d56786266307c23d7b63.tar.gz
prosody-c9dc1c903a80649dadf2d56786266307c23d7b63.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_invites_adhoc.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_invites_adhoc.lua b/plugins/mod_invites_adhoc.lua
index 4554d919..bd6f0c2e 100644
--- a/plugins/mod_invites_adhoc.lua
+++ b/plugins/mod_invites_adhoc.lua
@@ -45,7 +45,11 @@ local invite_result_form = dataforms.new({
local function may_invite_new_users(jid)
if usermanager.get_roles then
local user_roles = usermanager.get_roles(jid, module.host);
- if not user_roles then return; end
+ if not user_roles then
+ -- User has no roles we can check, just return default
+ return allow_user_invites;
+ end
+
if user_roles["prosody:admin"] then
return true;
end