mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-21 06:42:48 +01:00
Allow to view progress view while update is running
This commit is contained in:
@@ -62,6 +62,11 @@ readonly class MaintenanceModeSubscriber implements EventSubscriberInterface
|
||||
return;
|
||||
}
|
||||
|
||||
//Allow to view the progress page
|
||||
if (preg_match('#^/\w{2}/system/update-manager/progress#', $event->getRequest()->getPathInfo())) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Allow CLI requests
|
||||
if (PHP_SAPI === 'cli') {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user