Skip to content

BeforeFind #7357

Open
Open
@gglazer-dustyrobotics

Description

@gglazer-dustyrobotics

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions