mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-12 19:36:58 +01:00
* [FIX] Wrong behaviour when displaying task progress on master password change. Thanks to @deajan for the feedback. Closes #1128
* [FIX] Improved browser notifications format. Thanks to @vmario89 for the feedback. Closes #1142 * [FIX] Temporary master password change notifications are sent to all users. Thanks to @jorgemfm for the feedback. Closes #1156 * [MOD] Improved background tasks management * [MOD] Improved email notifications format Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
@@ -93,7 +93,6 @@ abstract class ModuleBase
|
||||
/**
|
||||
* Comprobar si el modo mantenimiento está activado
|
||||
* Esta función comprueba si el modo mantenimiento está activado.
|
||||
* Devuelve un error 503 y un reintento de 120s al cliente.
|
||||
*
|
||||
* @param ContextInterface $context
|
||||
*
|
||||
@@ -104,12 +103,11 @@ abstract class ModuleBase
|
||||
if ($this->configData->isMaintenance()) {
|
||||
Bootstrap::$LOCK = Util::getAppLock();
|
||||
|
||||
return ($this->request->isAjax()
|
||||
|| (Bootstrap::$LOCK !== false
|
||||
&& Bootstrap::$LOCK->userId > 0
|
||||
&& $context->isLoggedIn()
|
||||
&& Bootstrap::$LOCK->userId === $context->getUserData()->getId())
|
||||
) === false;
|
||||
return !$this->request->isAjax()
|
||||
|| !(Bootstrap::$LOCK !== false
|
||||
&& Bootstrap::$LOCK->userId > 0
|
||||
&& $context->isLoggedIn()
|
||||
&& Bootstrap::$LOCK->userId === $context->getUserData()->getId());
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user