Skip to content

Commit

Permalink
don't sync policies
Browse files Browse the repository at this point in the history
  • Loading branch information
calypsomatic committed Oct 30, 2024
1 parent 825b766 commit e4f2975
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ class ResourceService(
leaveTombStone = !resourceTypes(resource.resourceTypeName).reuseIds
affectedPolicies <- accessPolicyDAO.findPolicyGroupsInUse(resource, samRequestContext) // New method
_ <- affectedPolicies.traverse { case (policyToUpdate, policyToRemove) => removeSubjectFromPolicy(policyToUpdate, policyToRemove, samRequestContext) }
_ <- cloudSyncPolicies(affectedPolicies, samRequestContext)
_ <- accessPolicyDAO.deleteResource(resource, leaveTombStone, samRequestContext)

_ <- AuditLogger.logAuditEventIO(samRequestContext, ResourceEvent(ResourceDeleted, resource))
Expand Down

0 comments on commit e4f2975

Please sign in to comment.