Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Commit

Permalink
Revert style
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmichot committed Jun 22, 2015
1 parent 66b2bd8 commit e18611a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/Bican/Roles/Middleware/VerifyPermission.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ public function __construct(Guard $auth)
*/
public function handle($request, Closure $next, $permission)
{
if ($this->auth->check() && $this->auth->user()->can($permission)) {
return $next($request);
}
if ($this->auth->check() && $this->auth->user()->can($permission)) { return $next($request); }

throw new PermissionDeniedException($permission);
}
Expand Down
4 changes: 1 addition & 3 deletions src/Bican/Roles/Middleware/VerifyRole.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ public function __construct(Guard $auth)
*/
public function handle($request, Closure $next, $role)
{
if ($this->auth->check() && $this->auth->user()->is($role)) {
return $next($request);
}
if ($this->auth->check() && $this->auth->user()->is($role)) { return $next($request); }

throw new RoleDeniedException($role);
}
Expand Down

0 comments on commit e18611a

Please sign in to comment.