diff --git a/src/applications/calendar/storage/PhabricatorCalendarEvent.php b/src/applications/calendar/storage/PhabricatorCalendarEvent.php --- a/src/applications/calendar/storage/PhabricatorCalendarEvent.php +++ b/src/applications/calendar/storage/PhabricatorCalendarEvent.php @@ -1169,7 +1169,7 @@ case PhabricatorPolicyCapability::CAN_VIEW: return $this->getViewPolicy(); case PhabricatorPolicyCapability::CAN_EDIT: - if ($this->getImportSource()) { + if ($this->isImportedEvent()) { return PhabricatorPolicies::POLICY_NOONE; } else { return $this->getEditPolicy(); @@ -1178,7 +1178,7 @@ } public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { - if ($this->getImportSource()) { + if ($this->isImportedEvent()) { return false; } @@ -1204,7 +1204,7 @@ } public function describeAutomaticCapability($capability) { - if ($this->getImportSource()) { + if ($this->isImportedEvent()) { return pht( 'Events imported from external sources can not be edited in '. 'Phabricator.');