Software /
code /
prosody
Diff
plugins/muc/persistent.lib.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 | 12732:f731eda8a873 |
line wrap: on
line diff
--- a/plugins/muc/persistent.lib.lua Thu Jun 29 15:31:46 2023 +0100 +++ b/plugins/muc/persistent.lib.lua Thu Jun 29 15:36:13 2023 +0100 @@ -9,7 +9,7 @@ local restrict_persistent = not module:get_option_boolean("muc_room_allow_persistent", true); module:default_permission( - restrict_persistent and "prosody:admin" or "prosody:user", + restrict_persistent and "prosody:admin" or "prosody:registered", ":create-persistent-room" );