@@ -10,11 +10,11 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function handle($request, Closure $next) |
| 12 | 12 | { |
| 13 | - if(auth()->guest()){ |
|
| 13 | + if (auth()->guest()) { |
|
| 14 | 14 | return redirect(config('easy_panel.redirect_unauthorized')); |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | - if(!AuthFacade::checkIsAdmin(auth()->user()->id)){ |
|
| 17 | + if (!AuthFacade::checkIsAdmin(auth()->user()->id)) { |
|
| 18 | 18 | return redirect(config('easy_panel.redirect_unauthorized')); |
| 19 | 19 | } |
| 20 | 20 | |