@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function checkStudent() |
| 31 | 31 | { |
| 32 | - if (! auth()->check() || ! auth()->user()->isStudent()) { |
|
| 32 | + if ( ! auth()->check() || ! auth()->user()->isStudent()) { |
|
| 33 | 33 | throw new AuthorizationException('Unauthorized.'); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | */ |
| 30 | 30 | protected function checkAdmin() |
| 31 | 31 | { |
| 32 | - if (! auth()->check() || ! auth()->user()->isAdmin()) { |
|
| 32 | + if ( ! auth()->check() || ! auth()->user()->isAdmin()) { |
|
| 33 | 33 | throw new AuthorizationException('Unauthorized.'); |
| 34 | 34 | } |
| 35 | 35 | } |