diff options
author | Matthew Wild <mwild1@gmail.com> | 2023-06-29 15:36:13 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2023-06-29 15:36:13 +0100 |
commit | f7323ed6e45a8354a88928cbf91c73c7078cd2d0 (patch) | |
tree | cf4242993d275b4b04b0d97cd9eb751704625840 /plugins/muc | |
parent | 641f070a9da5d495e23dd1d7613121276fe96906 (diff) | |
download | prosody-f7323ed6e45a8354a88928cbf91c73c7078cd2d0.tar.gz prosody-f7323ed6e45a8354a88928cbf91c73c7078cd2d0.zip |
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.
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/hidden.lib.lua | 2 | ||||
-rw-r--r-- | plugins/muc/mod_muc.lua | 2 | ||||
-rw-r--r-- | plugins/muc/persistent.lib.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/hidden.lib.lua b/plugins/muc/hidden.lib.lua index 087fa102..d24fa47e 100644 --- a/plugins/muc/hidden.lib.lua +++ b/plugins/muc/hidden.lib.lua @@ -8,7 +8,7 @@ -- local restrict_public = not module:get_option_boolean("muc_room_allow_public", true); -module:default_permission(restrict_public and "prosody:admin" or "prosody:user", ":create-public-room"); +module:default_permission(restrict_public and "prosody:admin" or "prosody:registered", ":create-public-room"); local function get_hidden(room) return room._data.hidden; diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 0d216588..f26934be 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -414,7 +414,7 @@ if module:get_option_boolean("muc_tombstones", true) then end local restrict_room_creation = module:get_option("restrict_room_creation"); -module:default_permission(restrict_room_creation == true and "prosody:admin" or "prosody:user", ":create-room"); +module:default_permission(restrict_room_creation == true and "prosody:admin" or "prosody:registered", ":create-room"); module:hook("muc-room-pre-create", function(event) local origin, stanza = event.origin, event.stanza; if restrict_room_creation ~= false and not module:may(":create-room", event) then diff --git a/plugins/muc/persistent.lib.lua b/plugins/muc/persistent.lib.lua index 4c753921..29ed7784 100644 --- a/plugins/muc/persistent.lib.lua +++ b/plugins/muc/persistent.lib.lua @@ -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" ); |