Completed
Pull Request — master (#681)
by Sean
06:33
created
code/control/ApprovalsDispatcher.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -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.