Skip to content

feat: prevent users from sharing projects and reviews with themselves#136

Merged
willchen96 merged 1 commit into
mainfrom
prevent-self-sharing
May 15, 2026
Merged

feat: prevent users from sharing projects and reviews with themselves#136
willchen96 merged 1 commit into
mainfrom
prevent-self-sharing

Conversation

@willchen96

Copy link
Copy Markdown
Owner

Summary

Prevents users from sharing projects or tabular reviews with themselves.

Changes

  • Reject self-share emails in POST /projects.
  • Reject self-share emails in PATCH /projects/:projectId.
  • Reject self-share emails in PATCH /tabular-review/:reviewId.
  • Block self-share emails in the shared People modal.
  • Block self-share emails when creating a new project.
  • Normalize/dedupe project share emails before persisting.

Why

Owners already have access, so self-sharing is redundant and can create confusing access states in shared/member lists.

Testing

  • npm run build --prefix backend
  • npm run build --prefix frontend

@willchen96 willchen96 merged commit 4290104 into main May 15, 2026
@willchen96 willchen96 deleted the prevent-self-sharing branch May 15, 2026 17:48
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