Skip to content

Commit 5b6d3b8

Browse files
committed
Slightly more clear errors
1 parent baeffef commit 5b6d3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/Api/Application/AuthenticateUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AuthenticateUser
1919
public function handle(Request $request, Closure $next)
2020
{
2121
if (is_null($request->user()) || ! $request->user()->root_admin) {
22-
throw new AccessDeniedHttpException;
22+
throw new AccessDeniedHttpException('This account does not have permission to access the API.');
2323
}
2424

2525
return $next($request);

0 commit comments

Comments
 (0)