mirror of
https://github.com/status-im/status-go.git
synced 2025-02-03 10:25:35 +00:00
chore: don't process request to join if admin and community is set to
auto-accept
This commit is contained in:
parent
d5203c5e53
commit
75cd002863
@ -1752,6 +1752,11 @@ func (m *Manager) HandleCommunityRequestToJoin(signer *ecdsa.PublicKey, request
|
||||
return nil, ErrOrgNotFound
|
||||
}
|
||||
|
||||
// don't process request as admin if community is configured as auto-accept
|
||||
if community.HasPermissionToSendCommunityEvents() && community.AcceptRequestToJoinAutomatically() {
|
||||
return nil, errors.New("ignoring request to join, community is set to auto-accept")
|
||||
}
|
||||
|
||||
isUserRejected, err := m.isUserRejectedFromCommunity(signer, community, request.Clock)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
x
Reference in New Issue
Block a user