[management] Remove store locks 3 (#4390)

This commit is contained in:
Pascal Fischer
2025-08-21 20:47:28 +02:00
committed by GitHub
parent 968d95698e
commit 5e273c121a
5 changed files with 0 additions and 59 deletions

View File

@@ -332,9 +332,6 @@ func (am *DefaultAccountManager) UpdatePeer(ctx context.Context, accountID, user
// DeletePeer removes peer from the account by its IP
func (am *DefaultAccountManager) DeletePeer(ctx context.Context, accountID, peerID, userID string) error {
unlock := am.Store.AcquireWriteLockByUID(ctx, accountID)
defer unlock()
allowed, err := am.permissionsManager.ValidateUserPermissions(ctx, accountID, userID, modules.Peers, operations.Delete)
if err != nil {
return status.NewPermissionValidationError(err)