fix can-be-published
This commit is contained in:
parent
f0421e1f75
commit
6378dbca7e
|
@ -279,4 +279,8 @@ class Calendar extends \Sabre\CalDAV\Calendar implements IShareable {
|
|||
return isset($this->calendarInfo['{http://owncloud.org/ns}owner-principal']);
|
||||
}
|
||||
|
||||
public function isSubscription() {
|
||||
return isset($this->calendarInfo['{http://calendarserver.org/ns/}source']);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ class PublishPlugin extends ServerPlugin {
|
|||
});
|
||||
|
||||
$propFind->handle('{'.self::NS_CALENDARSERVER.'}can-be-published', function() use ($node) {
|
||||
return !$node->getPublishStatus();
|
||||
return !$node->getPublishStatus() && !$node->isSubscription();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue