Software /
code /
prosody
Diff
plugins/mod_invites_adhoc.lua @ 13170:082c7d856e61
core, plugins: Split prosody:user role into prosody:{guest,registered,member}
This gives us more granular control over different types of user account.
Accounts registered by IBR get assigned prosody:registered by default, while
accounts provisioned by an admin (e.g. via prosodyctl shell) will receive
prosody:member by default.
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 29 Jun 2023 15:36:13 +0100 |
parent | 12977:74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_invites_adhoc.lua Thu Jun 29 15:31:46 2023 +0100 +++ b/plugins/mod_invites_adhoc.lua Thu Jun 29 15:36:13 2023 +0100 @@ -12,7 +12,7 @@ -- on the server, use the option above instead. local allow_contact_invites = module:get_option_boolean("allow_contact_invites", true); -module:default_permission(allow_user_invites and "prosody:user" or "prosody:admin", ":invite-users"); +module:default_permission(allow_user_invites and "prosody:registered" or "prosody:admin", ":invite-users"); local invites; if prosody.shutdown then -- COMPAT hack to detect prosodyctl