@@ -20,12 +20,12 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function __invoke(Request $request, Response $response, callable $next) |
| 22 | 22 | { |
| 23 | - if (isset($_SESSION['phpCAS']['user'])) { |
|
| 23 | + if (isset($_SESSION['phpCAS']['user'])) { |
|
| 24 | 24 | if (in_array($_SESSION['phpCAS']['user'], $this->container['parameters']['administrators'])) |
| 25 | 25 | return $next($request, $response); |
| 26 | - } |
|
| 26 | + } |
|
| 27 | 27 | |
| 28 | - $this->flash->addMessage('error', '<i class="minus circle icon"></i> You are not allowed to access to this content.'); |
|
| 29 | - return $response->withRedirect($this->router->pathFor('wrong-entry')); |
|
| 28 | + $this->flash->addMessage('error', '<i class="minus circle icon"></i> You are not allowed to access to this content.'); |
|
| 29 | + return $response->withRedirect($this->router->pathFor('wrong-entry')); |
|
| 30 | 30 | } |
| 31 | 31 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | return User::find($uid)->user['sourcedId']; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | - /** protected $fillable = [ |
|
| 18 | + /** protected $fillable = [ |
|
| 19 | 19 | 'username', |
| 20 | 20 | 'email', |
| 21 | 21 | 'password', |