瀏覽代碼

Allow to change properties of readonly calendars

tags/v9.1.0beta1
Joas Schilling 8 年之前
父節點
當前提交
7a46b30c94
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      apps/dav/lib/dav/sharing/backend.php

+ 8
- 0
apps/dav/lib/dav/sharing/backend.php 查看文件

@@ -192,6 +192,14 @@ class Backend {
'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'],
'protected' => true,
];
} else if ($this->resourceType === 'calendar') {
// Allow changing the properties of read only calendars,
// so users can change the visibility.
$acl[] = [
'privilege' => '{DAV:}write-properties',
'principal' => $share['{' . \OCA\DAV\DAV\Sharing\Plugin::NS_OWNCLOUD . '}principal'],
'protected' => true,
];
}
}
return $acl;

Loading…
取消
儲存