mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +01:00
Fix an issue with BuildLogs and web UI during builds
Summary: Ref T9123. After recent changes, viewing a live build log from the web UI throws a CSRF exception. Check `start` ("this object is an active log"), not `live` ("this log is open somewhere"). Test Plan: Will push / etc. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9123 Differential Revision: https://secure.phabricator.com/D14185
This commit is contained in:
parent
efaa8170c3
commit
a5c4177160
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ final class HarbormasterBuildLog extends HarbormasterDAO
|
|||
const ENCODING_TEXT = 'text';
|
||||
|
||||
public function __destruct() {
|
||||
if ($this->live) {
|
||||
if ($this->start) {
|
||||
$this->finalize($this->start);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue