|
@@ -172,9 +172,11 @@ |
|
|
block discarded – undo |
|
172
|
172
|
return $errorResponse; |
|
173
|
173
|
} |
|
174
|
174
|
|
|
175
|
|
- if (!$this->project->allowed(self::ALLOW_APPROVAL, Member::currentUser))) { |
|
|
175
|
+ if (!$this->project->allowed(self::ALLOW_APPROVAL, Member::currentUser)) { |
|
|
176
|
+ ) { |
|
176
|
177
|
return $this->getAPIResponse(['message' => 'You are not authorised to approve this deployment'], 403); |
|
177
|
178
|
} |
|
|
179
|
+ } |
|
178
|
180
|
|
|
179
|
181
|
try { |
|
180
|
182
|
$deployment->getMachine()->apply(DNDeployment::TR_APPROVE); |
Please login to merge, or discard this patch.