Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15502630
D16803.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16803.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 15, 2:36 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7752332
Default Alt Text
D16803.id.diff (1 KB)
Attached To
Mode
D16803: Fix an issue with editing application default policies in Calendar
Attached
Detach File
Event Timeline
Log In to Comment