mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +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,
|
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||||
visitor, role, none, _ServiceAf) ->
|
visitor, role, none, _ServiceAf) ->
|
||||||
true;
|
true;
|
||||||
|
can_change_ra(FAffiliation, subscriber, _TAffiliation,
|
||||||
|
visitor, role, none, _ServiceAf)
|
||||||
|
when (FAffiliation == owner) or
|
||||||
|
(FAffiliation == admin) ->
|
||||||
|
true;
|
||||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||||
visitor, role, participant, _ServiceAf) ->
|
visitor, role, participant, _ServiceAf) ->
|
||||||
true;
|
true;
|
||||||
@ -3004,6 +3009,11 @@ can_change_ra(FAffiliation, _FRole, _TAffiliation,
|
|||||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||||
participant, role, none, _ServiceAf) ->
|
participant, role, none, _ServiceAf) ->
|
||||||
true;
|
true;
|
||||||
|
can_change_ra(FAffiliation, subscriber, _TAffiliation,
|
||||||
|
participant, role, none, _ServiceAf)
|
||||||
|
when (FAffiliation == owner) or
|
||||||
|
(FAffiliation == admin) ->
|
||||||
|
true;
|
||||||
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
can_change_ra(_FAffiliation, moderator, _TAffiliation,
|
||||||
participant, role, visitor, _ServiceAf) ->
|
participant, role, visitor, _ServiceAf) ->
|
||||||
true;
|
true;
|
||||||
|
Loading…
Reference in New Issue
Block a user