mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Do not decrease MUC admin's role/affiliation
This commit is contained in:
parent
72299ab078
commit
897b46c31d
@ -2519,6 +2519,11 @@ can_change_ra(_FAffiliation, _FRole,
|
||||
%% A room owner tries to add as persistent owner a
|
||||
%% participant that is already owner because he is MUC admin
|
||||
true;
|
||||
can_change_ra(_FAffiliation, _FRole,
|
||||
_TAffiliation, _TRole,
|
||||
_RoleorAffiliation, _Value, owner) ->
|
||||
%% Nobody can decrease MUC admin's role/affiliation
|
||||
false;
|
||||
can_change_ra(_FAffiliation, _FRole,
|
||||
TAffiliation, _TRole,
|
||||
affiliation, Value, _ServiceAf)
|
||||
|
Loading…
Reference in New Issue
Block a user