Page MenuHomePhabricator

D16803.diff
No OneTemporary

D16803.diff

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.');

File Metadata

Mime Type
text/plain
Expires
Tue, May 21, 2:46 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288199
Default Alt Text
D16803.diff (1 KB)

Event Timeline