diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2016-11-23 23:59:15 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-12-16 18:07:30 +0100 |
commit | 852de31ecbdbda217bc22a563bf04696349759eb (patch) | |
tree | f79e6dcf1223071dbbf1885bfc936126a5a69e47 | |
parent | b0c1460a1d7d71cb752637b42154cd515c2b489e (diff) | |
download | nextcloud-server-852de31ecbdbda217bc22a563bf04696349759eb.tar.gz nextcloud-server-852de31ecbdbda217bc22a563bf04696349759eb.zip |
Consider all channel except blank and git to be signed
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
-rw-r--r-- | lib/private/IntegrityCheck/Checker.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/private/IntegrityCheck/Checker.php b/lib/private/IntegrityCheck/Checker.php index 102fe42a99d..cba290e6aa7 100644 --- a/lib/private/IntegrityCheck/Checker.php +++ b/lib/private/IntegrityCheck/Checker.php @@ -96,12 +96,8 @@ class Checker { * @return bool */ public function isCodeCheckEnforced() { - $signedChannels = [ - 'daily', - 'testing', - 'stable', - ]; - if(!in_array($this->environmentHelper->getChannel(), $signedChannels, true)) { + $notSignedChannels = [ '', 'git']; + if (in_array($this->environmentHelper->getChannel(), $notSignedChannels, true)) { return false; } @@ -115,7 +111,7 @@ class Checker { } else { $isIntegrityCheckDisabled = false; } - if($isIntegrityCheckDisabled === true) { + if ($isIntegrityCheckDisabled === true) { return false; } |