@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | return $next($request); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if (!Admin::user()->allPermissions()->first(function ($permission) use ($request) { |
|
| 36 | + if (!Admin::user()->allPermissions()->first(function($permission) use ($request) { |
|
| 37 | 37 | return $permission->shouldPassThrough($request); |
| 38 | 38 | })) { |
| 39 | 39 | Checker::error(); |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function checkRoutePermission(Request $request) |
| 54 | 54 | { |
| 55 | - if (!$middleware = collect($request->route()->middleware())->first(function ($middleware) { |
|
| 55 | + if (!$middleware = collect($request->route()->middleware())->first(function($middleware) { |
|
| 56 | 56 | return Str::startsWith($middleware, $this->middlewarePrefix); |
| 57 | 57 | })) { |
| 58 | 58 | return false; |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | return collect($excepts) |
| 89 | 89 | ->map('admin_base_path') |
| 90 | - ->contains(function ($except) use ($request) { |
|
| 90 | + ->contains(function($except) use ($request) { |
|
| 91 | 91 | if ($except !== '/') { |
| 92 | 92 | $except = trim($except, '/'); |
| 93 | 93 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | return collect($excepts) |
| 45 | 45 | ->map('admin_base_path') |
| 46 | - ->contains(function ($except) use ($request) { |
|
| 46 | + ->contains(function($except) use ($request) { |
|
| 47 | 47 | if ($except !== '/') { |
| 48 | 48 | $except = trim($except, '/'); |
| 49 | 49 | } |