Do not decrease MUC admin's role/affiliation

This commit is contained in:
jabber 2011-04-17 19:03:07 +04:00 committed by Evgeniy Khramtsov
parent 72299ab078
commit 897b46c31d
1 changed files with 5 additions and 0 deletions

View File

@ -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)