Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/mitra' into mitra_2107
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorSFaria committed Nov 1, 2021
2 parents c96de09 + 0c2d252 commit 3321f44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mod_muc_room.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3139,6 +3139,12 @@ 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
can_change_ra(_FAffiliation, _FRole, _TAffiliation,
_TRole, affiliation, _Value, _ServiceAf) ->
false;
Expand Down

0 comments on commit 3321f44

Please sign in to comment.