* [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:
nuxsmin
2018-12-10 07:01:25 +01:00
parent 9aa3f33308
commit 90ba034522
38 changed files with 1446 additions and 971 deletions

View File

@@ -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)