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

BeforeFind #7357

Open
gglazer-dustyrobotics opened this issue Jan 24, 2025 · 0 comments · May be fixed by #7370
Open

BeforeFind #7357

gglazer-dustyrobotics opened this issue Jan 24, 2025 · 0 comments · May be fixed by #7370
Assignees
Labels
type:feature_request feature request

Comments

@gglazer-dustyrobotics
Copy link

Describe the feature

Create a BeforeFind hook along the same lines as the other Before hooks, but for Find.

Motivation

We are implementing a permissions system and using hooks to gate access. Some users will not have even read access to some data and therefore, even a find query should return an error. We can do this in AfterFind, but then we've already created load and overhead that is completely unnecessary. It would be much more efficient to reject before the query even happens.

Related Issues

@github-actions github-actions bot added the type:feature_request feature request label Jan 24, 2025
@MhmdGol MhmdGol linked a pull request Feb 16, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature_request feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants