Skip to content

Validate collection sharing constraints in the API view#1497

Open
brianhelba wants to merge 1 commit into
masterfrom
enforce-grantor-grantee-constraint
Open

Validate collection sharing constraints in the API view#1497
brianhelba wants to merge 1 commit into
masterfrom
enforce-grantor-grantee-constraint

Conversation

@brianhelba
Copy link
Copy Markdown
Member

Add checks to reject sharing a collection with yourself or sharing a magic collection, before the Celery task is dispatched. Previously, the self-share case would awkwardly fail in the task when it hit the collectionshare_grantor_grantee_diff_check database constraint.

@brianhelba brianhelba requested a review from danlamanna May 27, 2026 21:55
@brianhelba brianhelba force-pushed the enforce-grantor-grantee-constraint branch from 307fcc9 to 62d2a53 Compare May 27, 2026 21:57
Add checks to reject sharing a collection with yourself or sharing a
magic collection, before the Celery task is dispatched. Previously,
the self-share case would awkwardly fail in the task when it hit
the `collectionshare_grantor_grantee_diff_check` database constraint.
@brianhelba brianhelba force-pushed the enforce-grantor-grantee-constraint branch from 62d2a53 to 33dae18 Compare May 27, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant