diff --git a/4dev/tests/CoreLibsACLLoginTest.php b/4dev/tests/CoreLibsACLLoginTest.php
index 5fc53bc4..42c692be 100644
--- a/4dev/tests/CoreLibsACLLoginTest.php
+++ b/4dev/tests/CoreLibsACLLoginTest.php
@@ -95,6 +95,8 @@ final class CoreLibsACLLoginTest extends TestCase
$this->markTestIncomplete(
'ACL\Login Tests have not yet been implemented'
);
+
+ $login = new \CoreLibs\ACL\Login(self::$db, self::$log);
}
}
diff --git a/www/lib/CoreLibs/ACL/Login.php b/www/lib/CoreLibs/ACL/Login.php
index 8c3101a5..a8d0a868 100644
--- a/www/lib/CoreLibs/ACL/Login.php
+++ b/www/lib/CoreLibs/ACL/Login.php
@@ -191,6 +191,7 @@ class Login
// check if session exists and could be created
// TODO: move session creation and check to outside?
if (Session::startSession() === false) {
+ $this->login_error = 1;
echo 'Session not started or could not be started!
'
. 'Use \'\CoreLibs\Create\Session::startSession();\'.
'
. 'For less problems with other session, you can set a '
@@ -837,10 +838,10 @@ class Login
$_SESSION['BASE_ACL_LEVEL'] = $this->acl['base'];
// set the current page acl
- // start with default acl
+ // start with base acl
// set group if not -1, overrides default
// set page if not -1, overrides group set
- $this->acl['page'] = DEFAULT_ACL_LEVEL;
+ $this->acl['page'] = $this->acl['base'];
if ($_SESSION['GROUP_ACL_LEVEL'] != -1) {
$this->acl['page'] = $_SESSION['GROUP_ACL_LEVEL'];
}