1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

do not throw an error when members count not increased

This commit is contained in:
Sergey Cherepanov 2024-04-29 13:41:42 +02:00
parent 53ff0be164
commit 6d7c258b5f
No known key found for this signature in database
GPG key ID: 87F8EDE8FBDF637C

View file

@ -115,7 +115,7 @@ func (as *aclService) AddRecord(ctx context.Context, spaceId string, rec *consen
}
}
if readers >= beforeReaders {
if uint32(readers) > limits.ReadMembers {
if readers > beforeReaders && uint32(readers) > limits.ReadMembers {
return ErrLimitExceed
}
if uint32(writers) > limits.WriteMembers {