* CalDAV/CardDAV/TbSync: fix wrong/minimal privileges on sub-collections causing TbSync not to display this calendars or addressbooks

This commit is contained in:
ralf 2022-05-27 12:03:37 +02:00
parent ad98fb299b
commit 89615cf9de

View File

@ -521,11 +521,7 @@ abstract class Handler
{
unset($path); // not used, but required by function signature
static $grants=null;
if (is_null($grants))
{
$grants = $this->get_grants();
}
$grants = $this->get_grants();
$priviledes = array('read-current-user-privilege-set' => 'read-current-user-privilege-set');
if (is_null($user) || $grants[$user] & Api\Acl::READ)