Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialRevision.php
| Show First 20 Lines • Show All 517 Lines • ▼ Show 20 Lines | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
| public function describeAutomaticCapability($capability) { | public function describeAutomaticCapability($capability) { | ||||
| $description = array( | $description = array( | ||||
| pht('The owner of a revision can always view and edit it.'), | pht('The owner of a revision can always view and edit it.'), | ||||
| ); | ); | ||||
| switch ($capability) { | switch ($capability) { | ||||
| case PhabricatorPolicyCapability::CAN_VIEW: | case PhabricatorPolicyCapability::CAN_VIEW: | ||||
| $description[] = pht("A revision's reviewers can always view it."); | |||||
| $description[] = pht( | $description[] = pht( | ||||
| 'If a revision belongs to a repository, other users must be able '. | 'If a revision belongs to a repository, other users must be able '. | ||||
| 'to view the repository in order to view the revision.'); | 'to view the repository in order to view the revision.'); | ||||
| break; | break; | ||||
| } | } | ||||
| return $description; | return $description; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 390 Lines • Show Last 20 Lines | |||||