Skip to content

Commit

Permalink
Merge pull request #5 from 365Werk/analysis-1b0kpA
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
HergenD authored Sep 15, 2020
2 parents bfc6a11 + 86a886b commit 80605fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middlewares/RoleMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function handle($request, Closure $next, $role)
$user_roles = array_map('strtolower', Auth::user()->roles);
$same = (array_intersect($roles, $user_roles));

if(!$same) {
if (! $same) {
throw AuthException::auth('401', 'User does not have right roles');
}

Expand Down

0 comments on commit 80605fe

Please sign in to comment.