mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01:00
Allow a subscribed owner/admin to kick participants and visitors
This commit is contained in:
parent
9bac2fa185
commit
8b61c7fe4b
@ -2988,6 +2988,11 @@ can_change_ra(_FAffiliation, _FRole, _TAffiliation,
|
||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||
visitor, role, none, _ServiceAf) ->
|
||||
true;
|
||||
can_change_ra(FAffiliation, subscriber, _TAffiliation,
|
||||
visitor, role, none, _ServiceAf)
|
||||
when (FAffiliation == owner) or
|
||||
(FAffiliation == admin) ->
|
||||
true;
|
||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||
visitor, role, participant, _ServiceAf) ->
|
||||
true;
|
||||
@ -3004,6 +3009,11 @@ can_change_ra(FAffiliation, _FRole, _TAffiliation,
|
||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||
participant, role, none, _ServiceAf) ->
|
||||
true;
|
||||
can_change_ra(FAffiliation, subscriber, _TAffiliation,
|
||||
participant, role, none, _ServiceAf)
|
||||
when (FAffiliation == owner) or
|
||||
(FAffiliation == admin) ->
|
||||
true;
|
||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||
participant, role, visitor, _ServiceAf) ->
|
||||
true;
|
||||
|
Loading…
Reference in New Issue
Block a user