Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions server/internal/access/queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ DELETE FROM principal_grants
WHERE id = @id
AND organization_id = @organization_id;

-- name: DeletePrincipalGrantByTuple :execrows
-- Removes a single grant row matching the exact (org, principal, scope, resource) tuple.
DELETE FROM principal_grants
WHERE organization_id = @organization_id
AND principal_urn = @principal_urn
AND scope = @scope
AND resource = @resource;

-- name: DeletePrincipalGrantsByPrincipal :execrows
-- Removes all grants for a specific principal within an org.
-- Useful when removing a user from an organization.
Expand Down
29 changes: 29 additions & 0 deletions server/internal/access/repo/queries.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading