You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: