comparison plugins/muc/hidden.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
parents 9061f9621330
children
comparison
equal deleted inserted replaced
13169:7b6e7290265b 13170:082c7d856e61
6 -- This project is MIT/X11 licensed. Please see the 6 -- This project is MIT/X11 licensed. Please see the
7 -- COPYING file in the source package for more information. 7 -- COPYING file in the source package for more information.
8 -- 8 --
9 9
10 local restrict_public = not module:get_option_boolean("muc_room_allow_public", true); 10 local restrict_public = not module:get_option_boolean("muc_room_allow_public", true);
11 module:default_permission(restrict_public and "prosody:admin" or "prosody:user", ":create-public-room"); 11 module:default_permission(restrict_public and "prosody:admin" or "prosody:registered", ":create-public-room");
12 12
13 local function get_hidden(room) 13 local function get_hidden(room)
14 return room._data.hidden; 14 return room._data.hidden;
15 end 15 end
16 16