Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(api): voters deny access when camp is null #6010

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

usu
Copy link
Member

@usu usu commented Sep 27, 2024

Refactors voters to deny access, if camp is null

  • Semantically more correct. is_granted("CAMP_MEMBER", object) returns false, if object has no camp and hence user cannot be a camp member
  • More robust implementation for entities where camp is optional (like Checklist)
  • For write operations where security should specifically be passed because a missing camp would trigger a validation error, this has now to be enabled explicitly for the properties which have such a validation

@usu usu requested review from a team and pmattmann September 27, 2024 20:00
Copy link
Member

@pmattmann pmattmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't we say that we would add a comment each time?

@pmattmann pmattmann added this pull request to the merge queue Sep 27, 2024
Merged via the queue into ecamp:devel with commit c3ab369 Sep 27, 2024
34 checks passed
@usu usu mentioned this pull request Sep 28, 2024
6 tasks
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.

3 participants