Differential D19977 Diff 47703 src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/editor/PhabricatorApplicationTransactionEditor.php
| Show First 20 Lines • Show All 1,671 Lines • ▼ Show 20 Lines | switch ($edge_type) { | ||||
| return PhabricatorPolicyCapability::CAN_EDIT; | return PhabricatorPolicyCapability::CAN_EDIT; | ||||
| } else { | } else { | ||||
| return null; | return null; | ||||
| } | } | ||||
| } | } | ||||
| // You need CAN_EDIT to change members other than yourself. | // You need CAN_EDIT to change members other than yourself. | ||||
| return PhabricatorPolicyCapability::CAN_EDIT; | return PhabricatorPolicyCapability::CAN_EDIT; | ||||
| case PhabricatorObjectHasWatcherEdgeType::EDGECONST: | |||||
| // See PHI1024. Watching a project does not require CAN_EDIT. | |||||
| return null; | |||||
| default: | default: | ||||
| return PhabricatorPolicyCapability::CAN_EDIT; | return PhabricatorPolicyCapability::CAN_EDIT; | ||||
| } | } | ||||
| } | } | ||||
| private function buildSubscribeTransaction( | private function buildSubscribeTransaction( | ||||
| PhabricatorLiskDAO $object, | PhabricatorLiskDAO $object, | ||||
| ▲ Show 20 Lines • Show All 3,212 Lines • Show Last 20 Lines | |||||