mirror of
https://github.com/typemill/typemill.git
synced 2025-08-11 16:44:21 +02:00
Version 1.2.6: Visual Editor
This commit is contained in:
@@ -19,7 +19,7 @@ class RedirectIfAuthenticated
|
||||
{
|
||||
if(isset($_SESSION['login']))
|
||||
{
|
||||
$response = $response->withRedirect($this->router->pathFor('content.show'));
|
||||
$response = $response->withRedirect($this->router->pathFor('content.raw'));
|
||||
}
|
||||
|
||||
return $next($request, $response);
|
||||
|
@@ -24,7 +24,7 @@ class RedirectIfNoAdmin
|
||||
|
||||
if($_SESSION['role'] != 'administrator')
|
||||
{
|
||||
$response = $response->withRedirect($this->router->pathFor('content.show'));
|
||||
$response = $response->withRedirect($this->router->pathFor('content.raw'));
|
||||
}
|
||||
|
||||
return $next($request, $response);
|
||||
|
Reference in New Issue
Block a user