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
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class AuthenticateUser
public function handle(Request $request, Closure $next) public function handle(Request $request, Closure $next)
{ {
if (is_null($request->user()) || ! $request->user()->root_admin) { 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); return $next($request);