mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-11 10:56:58 +01:00
* [ADD] syspass.log file and configuration backup can now be downloaded from Information tab
Signed-off-by: nuxsmin <nuxsmin@syspass.org>
This commit is contained in:
@@ -354,6 +354,11 @@ final class ConfigManagerController extends ControllerBase
|
||||
$template->assign('missingExtensions', $this->extensionChecker->getMissing());
|
||||
$template->assign('downloadRate', round(Util::getMaxDownloadChunk() / 1024 / 1024));
|
||||
|
||||
$isDemo = $this->configData->isDemoEnabled();
|
||||
|
||||
$template->assign('downloadConfigBackup', !$isDemo && $this->userData->getIsAdminApp());
|
||||
$template->assign('downloadLog', !$isDemo && is_readable(LOG_FILE) && $this->userData->getIsAdminApp());
|
||||
|
||||
return new DataTab(__('Información'), $template);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user