-
Description:in /**
* Determine if the filter or action should be available for the given request.
*
* @param \Illuminate\Http\Request $request
* @return bool
*/
public function authorizedToSee(Request $request)
{
return $this->seeCallback ? call_user_func($this->seeCallback, $request) : true;
}The request injected in the call back seems to be a ->canSee(function ($request) {
$query = ($request instanceof ActionRequest) ? $request->findModelQuery($request->resources) : $request->findModelQuery();
return $query->first()...
}),Indeed, |
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
Apr 8, 2022
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
potsky
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
authorizedToSeemay be called fromIlluminate\Http\Request(outside of Nova) while most internal Nova requests will always beNovaRequest.