Skip to content

Commit

Permalink
Admin de-member himself
Browse files Browse the repository at this point in the history
  • Loading branch information
tarrafil authored Aug 27, 2020
1 parent e51776e commit 0c2d252
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mod_muc_room.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3131,6 +3131,9 @@ can_change_ra(owner, _FRole, admin, _TRole, affiliation,
can_change_ra(owner, _FRole, owner, _TRole, affiliation,
_Affiliation, _ServiceAf) ->
check_owner;
can_change_ra(admin, _FRole, admin,
_TRole, affiliation, none, none) ->
true; % Allow a admin that joined the room to de-member himself
can_change_ra(member, participant, member,
participant, affiliation, none, none) ->
true; % Allow a member that joined the room to de-member himself
Expand Down

0 comments on commit 0c2d252

Please sign in to comment.