Skip to content

Commit

Permalink
switcht to member group id
Browse files Browse the repository at this point in the history
  • Loading branch information
calypsomatic committed Oct 4, 2024
1 parent 4c3f5fa commit d9c6050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ class PostgresAccessPolicyDAO(
val deleteQuery = samsql"""
delete from ${GroupMemberTable as gm}
using ${PolicyTable as p}
where ${gm.groupId} = ${p.groupId}
where ${gm.memberGroupId} = ${p.groupId}
and ${p.resourceId} = (${loadResourcePKSubQuery(resourceId)})
"""
logger.info(s"deleteQuery: ${deleteQuery.statement}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ class ResourceService(
for {
policiesToDelete <- accessPolicyDAO.listAccessPolicies(resource, samRequestContext)
_ <- policiesToDelete.traverse { policy =>
logger.info(s"deleting policy ${policy}")
cloudExtensions.onGroupDelete(policy.email)
}
} yield policiesToDelete
Expand Down

0 comments on commit d9c6050

Please sign in to comment.