Skip to content
Snippets Groups Projects
Commit 73d65223 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #1780 check session userId before display

parent 2fba0dfc
No related branches found
No related tags found
No related merge requests found
......@@ -106,12 +106,7 @@ foreach ($_REQUEST as $name => $value) {
}
}
if (isset($_REQUEST['display'])) {
$core->insert_page();
exit();
}
if (! isset($_SESSION['user']['UserId'])) {
if (! isset($_SESSION['user']['UserId']) && $_REQUEST['page'] <> 'login' && $_REQUEST['page'] <> 'log' ) {
$_SESSION['HTTP_REFERER'] = Url::requestUri();
if (trim($_SERVER['argv'][0]) <> '') {
......@@ -122,6 +117,11 @@ if (! isset($_SESSION['user']['UserId'])) {
exit();
}
if (isset($_REQUEST['display'])) {
$core->insert_page();
exit();
}
if (isset($_GET['show'])) {
$show = $_GET['show'];
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment