Differential D17696 Diff 42562 src/applications/conpherence/controller/ConpherenceViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceViewController.php
Show First 20 Lines • Show All 141 Lines • ▼ Show 20 Lines | final class ConpherenceViewController extends | ||||
} | } | ||||
private function renderFormContent() { | private function renderFormContent() { | ||||
$conpherence = $this->getConpherence(); | $conpherence = $this->getConpherence(); | ||||
$user = $this->getRequest()->getUser(); | $user = $this->getRequest()->getUser(); | ||||
$participating = $conpherence->getParticipantIfExists($user->getPHID()); | $participating = $conpherence->getParticipantIfExists($user->getPHID()); | ||||
if (!$participating && $user->isLoggedIn()) { | |||||
return null; | |||||
} | |||||
$draft = PhabricatorDraft::newFromUserAndKey( | $draft = PhabricatorDraft::newFromUserAndKey( | ||||
$user, | $user, | ||||
$conpherence->getPHID()); | $conpherence->getPHID()); | ||||
$update_uri = $this->getApplicationURI('update/'.$conpherence->getID().'/'); | $update_uri = $this->getApplicationURI('update/'.$conpherence->getID().'/'); | ||||
if ($user->isLoggedIn()) { | if ($user->isLoggedIn()) { | ||||
$this->initBehavior('conpherence-pontificate'); | $this->initBehavior('conpherence-pontificate'); | ||||
if ($participating) { | if ($participating) { | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |