mirror of
https://github.com/typemill/typemill.git
synced 2025-08-10 08:04:43 +02:00
Version 1.3.8: User Rights
This commit is contained in:
@@ -20,6 +20,12 @@ class accessController
|
||||
|
||||
public function __invoke(Request $request, Response $response, $next)
|
||||
{
|
||||
|
||||
if($this->resource == NULL && $this->privilege == NULL)
|
||||
{
|
||||
return $next($request, $response);
|
||||
}
|
||||
|
||||
if(!isset($_SESSION['login']))
|
||||
{
|
||||
return $response->withRedirect($this->router->pathFor('auth.show'));
|
||||
|
Reference in New Issue
Block a user