Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialReviewer.php
| Show All 40 Lines | public function hasAuthority(PhabricatorUser $viewer) { | ||||
| $viewer_phid = $viewer->getPHID(); | $viewer_phid = $viewer->getPHID(); | ||||
| if (!array_key_exists($viewer_phid, $this->authority)) { | if (!array_key_exists($viewer_phid, $this->authority)) { | ||||
| throw new Exception("You must attachAuthority() first!"); | throw new Exception("You must attachAuthority() first!"); | ||||
| } | } | ||||
| return $this->authority[$viewer_phid]; | return $this->authority[$viewer_phid]; | ||||
| } | } | ||||
| public function getEdgeData() { | |||||
| return array( | |||||
| 'status' => $this->status, | |||||
| 'diffID' => $this->diffID, | |||||
| ); | |||||
| } | |||||
| } | } | ||||