Browse Source

Merge pull request #2726 from nextcloud/check-all-channels

[downstream] Consider all channel except blank and git to be signed
tags/v12.0.0beta1
Christoph Wurst 7 years ago
parent
commit
8a21fc0908
1 changed files with 3 additions and 7 deletions
  1. 3
    7
      lib/private/IntegrityCheck/Checker.php

+ 3
- 7
lib/private/IntegrityCheck/Checker.php View File

* @return bool * @return bool
*/ */
public function isCodeCheckEnforced() { 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; return false;
} }


} else { } else {
$isIntegrityCheckDisabled = false; $isIntegrityCheckDisabled = false;
} }
if($isIntegrityCheckDisabled === true) {
if ($isIntegrityCheckDisabled === true) {
return false; return false;
} }



Loading…
Cancel
Save