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
Open

BeforeFind #7357

gglazer-dustyrobotics opened this issue Jan 24, 2025 · 0 comments
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

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

No branches or pull requests

2 participants