mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-25 01:27:29 +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:
@@ -34,6 +34,7 @@ use SP\Http\JsonResponse;
|
||||
use SP\Modules\Web\Controllers\Traits\ConfigTrait;
|
||||
use SP\Services\Config\ConfigBackupService;
|
||||
use SP\Storage\File\FileHandler;
|
||||
use SP\Util\Util;
|
||||
|
||||
/**
|
||||
* Class ConfigGeneral
|
||||
@@ -169,7 +170,11 @@ final class ConfigGeneralController extends SimpleControllerBase
|
||||
return $this->saveConfig(
|
||||
$configData,
|
||||
$this->config,
|
||||
function () use ($eventMessage) {
|
||||
function () use ($eventMessage, $configData) {
|
||||
if ($configData->isMaintenance()) {
|
||||
Util::lockApp($this->session->getUserData()->getId(), 'config');
|
||||
}
|
||||
|
||||
$this->eventDispatcher->notifyEvent(
|
||||
'save.config.general',
|
||||
new Event($this, $eventMessage)
|
||||
|
||||
Reference in New Issue
Block a user