code/control/EnvironmentOverview.php 1 location
|
@@ 27-35 (lines=9) @@
|
| 24 |
|
'deployment' |
| 25 |
|
]; |
| 26 |
|
|
| 27 |
|
public function init() { |
| 28 |
|
parent::init(); |
| 29 |
|
$this->project = $this->getCurrentProject(); |
| 30 |
|
if (!$this->project) { |
| 31 |
|
return $this->project404Response(); |
| 32 |
|
} |
| 33 |
|
// Performs canView permission check by limiting visible projects |
| 34 |
|
$this->environment = $this->getCurrentEnvironment($this->project); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
/** |
| 38 |
|
* |
code/control/ApprovalsDispatcher.php 1 location
|
@@ 70-83 (lines=14) @@
|
| 67 |
|
return $environment->Project()->allowed(self::ALLOW_APPROVAL_BYPASS, $member); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
public function init() { |
| 71 |
|
parent::init(); |
| 72 |
|
|
| 73 |
|
$this->project = $this->getCurrentProject(); |
| 74 |
|
if (!$this->project) { |
| 75 |
|
return $this->project404Response(); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
// Performs canView permission check by limiting visible projects |
| 79 |
|
$this->environment = $this->getCurrentEnvironment($this->project); |
| 80 |
|
if (!$this->environment) { |
| 81 |
|
return $this->environment404Response(); |
| 82 |
|
} |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
/** |
| 86 |
|
* @param \SS_HTTPRequest $request |
code/control/DeployDispatcher.php 1 location
|
@@ 48-62 (lines=15) @@
|
| 45 |
|
self::ACTION_DEPLOY |
| 46 |
|
]; |
| 47 |
|
|
| 48 |
|
public function init() { |
| 49 |
|
parent::init(); |
| 50 |
|
|
| 51 |
|
$this->project = $this->getCurrentProject(); |
| 52 |
|
|
| 53 |
|
if (!$this->project) { |
| 54 |
|
return $this->project404Response(); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
// Performs canView permission check by limiting visible projects |
| 58 |
|
$this->environment = $this->getCurrentEnvironment($this->project); |
| 59 |
|
if (!$this->environment) { |
| 60 |
|
return $this->environment404Response(); |
| 61 |
|
} |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
/** |
| 65 |
|
* @param \SS_HTTPRequest $request |