mirror of
https://github.com/typemill/typemill.git
synced 2025-07-31 03:10:19 +02:00
Search users, select role field, german translations
This commit is contained in:
@@ -31,6 +31,11 @@ class accessController
|
||||
return $response->withRedirect($this->router->pathFor('auth.show'));
|
||||
}
|
||||
|
||||
if(!$this->acl->hasRole($_SESSION['role']))
|
||||
{
|
||||
$_SESSION['role'] = 'member';
|
||||
}
|
||||
|
||||
if(!$this->acl->isAllowed($_SESSION['role'], $this->resource, $this->privilege ))
|
||||
{
|
||||
# redirect to frontend startpage
|
||||
|
Reference in New Issue
Block a user