model.beforeFetch

Triggered in October\Rain\Database\Model.

Called before the model is fetched

Example usage:

$model->bindEvent('model.beforeFetch', function () use (\October\Rain\Database\Model $model) {
    if (!\Auth::getUser()->hasAccess('fetch.this.model')) {
        throw new \Exception("You shall not pass!");
    }
});