]> granicus.if.org Git - ejabberd/commit
Affiliations other than admin and owner cannot invite to members_only rooms
authorBadlop <badlop@process-one.net>
Wed, 17 Oct 2018 10:55:31 +0000 (12:55 +0200)
committerBadlop <badlop@process-one.net>
Wed, 17 Oct 2018 10:57:18 +0000 (12:57 +0200)
commitb010a1a0a03fb304ad018b4d42d69df93ca4c5a1
tree38a5672a6bd3defda2162b2d5ace376d1bfb443e
parent9a99284dfd22b643c075d2f818799beaa191d6b7
Affiliations other than admin and owner cannot invite to members_only rooms

This is explained in the paragraph:
 If the room is members-only, the service MAY also add the invitee to the
 member list. (Note: Invitation privileges in members-only rooms SHOULD be
 restricted to room admins; if a member without privileges to edit the
 member list attempts to invite another user, the service SHOULD return
 a <forbidden/> error to the occupant; for details, see the Modifying the
 Member List section of this document.)
https://xmpp.org/extensions/xep-0045.html#invite-mediated
src/mod_muc_room.erl