Add config option to disable and hide self-update

This commit is contained in:
Dennis Schwerdel
2017-02-23 21:22:56 +01:00
parent 5f637bd816
commit 59d6f3593c
4 changed files with 8 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ class FreshRSS_update_Controller extends Minz_ActionController {
}
public function applyAction() {
if (!file_exists(UPDATE_FILENAME) || !is_writable(FRESHRSS_PATH)) {
if (!file_exists(UPDATE_FILENAME) || !is_writable(FRESHRSS_PATH) || Minz_Configuration::get('system')->disable_update) {
Minz_Request::forward(array('c' => 'update'), true);
}