Merge branch '5.7.1' into develop

This commit is contained in:
Roland Gruber 2017-04-05 19:53:02 +02:00
commit 291c9ee14f
1 changed files with 1 additions and 1 deletions

View File

@ -1470,7 +1470,7 @@ function validateReCAPTCHA($secretKey) {
* @param boolean $check2ndFactor check if the 2nd factor was provided if required
*/
function enforceUserIsLoggedIn($check2ndFactor = true) {
if (!isset($_SESSION['loggedIn']) || ($_SESSION['loggedIn'] !== true)) {
if ((!isset($_SESSION['loggedIn']) || ($_SESSION['loggedIn'] !== true)) && empty($_SESSION['selfService_clientPassword'])) {
logNewMessage(LOG_WARNING, 'Detected unauthorized access to page that requires login: ' . $_SERVER["SCRIPT_FILENAME"]);
die();
}