@@ -12,11 +12,11 @@ |
||
| 12 | 12 | { |
| 13 | 13 | auth()->shouldUse(config('easy_panel.auth_guard')); |
| 14 | 14 | |
| 15 | - if(auth()->guest()){ |
|
| 15 | + if (auth()->guest()) { |
|
| 16 | 16 | return redirect(config('easy_panel.redirect_unauthorized')); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - if(!AuthFacade::checkIsAdmin(auth()->user()->id)){ |
|
| 19 | + if (!AuthFacade::checkIsAdmin(auth()->user()->id)) { |
|
| 20 | 20 | return redirect(config('easy_panel.redirect_unauthorized')); |
| 21 | 21 | } |
| 22 | 22 | |