Migliorato skip permissione in avvio

This commit is contained in:
Fabio Lovato 2018-04-23 09:53:53 +02:00
parent 8d4a758f2a
commit 943aff7e5e
1 changed files with 5 additions and 1 deletions

View File

@ -127,7 +127,11 @@ $dbo = Database::getConnection();
// Controllo sulla presenza dei permessi di accesso basilari // Controllo sulla presenza dei permessi di accesso basilari
$continue = $dbo->isInstalled() && !Update::isUpdateAvailable() && (Auth::check() || API::isAPIRequest()); $continue = $dbo->isInstalled() && !Update::isUpdateAvailable() && (Auth::check() || API::isAPIRequest());
if (!$continue && getURLPath() != slashes(ROOTDIR.'/index.php')) { if (!empty($skip_permissions)) {
Permissions::skip();
}
if (!$continue && getURLPath() != slashes(ROOTDIR.'/index.php') && !Permissions::getSkip()) {
if (Auth::check()) { if (Auth::check()) {
Auth::logout(); Auth::logout();
} }