Skip to content

Commit

Permalink
Improve helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed Jul 29, 2016
1 parent 22fc6a3 commit 5642474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Someline/Foundation/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function auth_user()
{
$user = app('Dingo\Api\Auth\Auth')->user(false);
$user = !empty($user) ? $user : \Auth::user();
if (!$user || !($user instanceof \Someline\Models\Foundation\User)) {
if (!$user || !($user instanceof \Someline\Model\Foundation\User)) {
throw new \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException();
}
return $user;
Expand Down

0 comments on commit 5642474

Please sign in to comment.