mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-10 14:44:04 +01:00
Migliorato skip permissione in avvio
This commit is contained in:
parent
8d4a758f2a
commit
943aff7e5e
6
core.php
6
core.php
@ -127,7 +127,11 @@ $dbo = Database::getConnection();
|
||||
// Controllo sulla presenza dei permessi di accesso basilari
|
||||
$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()) {
|
||||
Auth::logout();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user