1
0
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:
trendschau
2020-07-15 10:53:27 +02:00
parent 4f80e07810
commit 489f1e268e
16 changed files with 147 additions and 14 deletions

View File

@@ -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'));