Slightly more clear errors

This commit is contained in:
Dane Everitt 2018-02-24 12:27:41 -06:00
parent baeffef24b
commit 5b6d3b8325
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -19,7 +19,7 @@ class AuthenticateUser
public function handle(Request $request, Closure $next)
{
if (is_null($request->user()) || ! $request->user()->root_admin) {
throw new AccessDeniedHttpException;
throw new AccessDeniedHttpException('This account does not have permission to access the API.');
}
return $next($request);