Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialReviewer.php
| Show All 36 Lines | public function attachAuthority(PhabricatorUser $user, $has_authority) { | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function hasAuthority(PhabricatorUser $viewer) { | public function hasAuthority(PhabricatorUser $viewer) { | ||||
| $cache_fragment = $viewer->getCacheFragment(); | $cache_fragment = $viewer->getCacheFragment(); | ||||
| return $this->assertAttachedKey($this->authority, $cache_fragment); | return $this->assertAttachedKey($this->authority, $cache_fragment); | ||||
| } | } | ||||
| public function isResigned() { | |||||
| $status_resigned = DifferentialReviewerStatus::STATUS_RESIGNED; | |||||
| return ($this->getReviewerStatus() == $status_resigned); | |||||
| } | |||||
| } | } | ||||