From ab6c42bc1041bfefcd0591aa7b5754b4fdbe2c67 Mon Sep 17 00:00:00 2001 From: Jay07GIT Date: Thu, 14 Mar 2024 22:35:08 +0530 Subject: [PATCH] update --- .../scala/vinyldns/api/domain/record/RecordSetService.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/src/main/scala/vinyldns/api/domain/record/RecordSetService.scala b/modules/api/src/main/scala/vinyldns/api/domain/record/RecordSetService.scala index 9d377165b..86bfc15e5 100644 --- a/modules/api/src/main/scala/vinyldns/api/domain/record/RecordSetService.scala +++ b/modules/api/src/main/scala/vinyldns/api/domain/record/RecordSetService.scala @@ -152,7 +152,7 @@ class RecordSetService( _ <- unchangedRecordType(existing, recordSet).toResult _ <- unchangedZoneId(existing, recordSet).toResult _ <- if(requestorOwnerShipTransferStatus.contains(recordSet.recordSetGroupChange.map(_.ownerShipTransferStatus).getOrElse("")) - && !auth.isSuper && !auth.isGroupMember(existing.ownerGroupId.getOrElse("None"))) unchangedRecordSet(existing, recordSet).toResult else ().toResult + && !auth.isSuper) unchangedRecordSet(existing, recordSet).toResult else ().toResult _ <- if(existing.recordSetGroupChange.map(_.ownerShipTransferStatus).getOrElse("") == OwnerShipTransferStatus.Cancelled && !auth.isSuper) recordSetOwnerShipApproveStatus(recordSet).toResult else ().toResult recordSet <- if (auth.isSuper) recordSet.toResult else updateRecordSetGroupChangeStatus(recordSet, existing, zone)