Fixed status image for private projects

This commit is contained in:
Dmitry Khomutov 2017-01-06 23:36:48 +07:00
parent ae90538a38
commit 86be19f37b

View file

@ -54,10 +54,6 @@ class BuildStatusController extends Controller
$project = $this->projectStore->getById($projectId);
$status = 'passing';
if (!$project->getAllowPublicStatus()) {
return null;
}
if (isset($project) && $project instanceof Project) {
$build = $project->getLatestBuild($branch, [2,3]);