Differential D21766 Diff 51902 src/applications/calendar/codex/PhabricatorCalendarEventPolicyCodex.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/calendar/codex/PhabricatorCalendarEventPolicyCodex.php
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | public function getPolicySpecialRuleDescriptions() { | ||||
$rules[] = $this->newRule() | $rules[] = $this->newRule() | ||||
->setCapabilities( | ->setCapabilities( | ||||
array( | array( | ||||
PhabricatorPolicyCapability::CAN_EDIT, | PhabricatorPolicyCapability::CAN_EDIT, | ||||
)) | )) | ||||
->setIsActive($object->isImportedEvent()) | ->setIsActive($object->isImportedEvent()) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
'Imported events can not be edited in Phabricator.')); | 'Imported events can not be edited.')); | ||||
return $rules; | return $rules; | ||||
} | } | ||||
} | } |