forked from extern/egroupware
* CalDAV/CardDAV/TbSync: fix wrong/minimal privileges on sub-collections causing TbSync not to display this calendars or addressbooks
This commit is contained in:
parent
ad98fb299b
commit
89615cf9de
@ -521,11 +521,7 @@ abstract class Handler
|
|||||||
{
|
{
|
||||||
unset($path); // not used, but required by function signature
|
unset($path); // not used, but required by function signature
|
||||||
|
|
||||||
static $grants=null;
|
$grants = $this->get_grants();
|
||||||
if (is_null($grants))
|
|
||||||
{
|
|
||||||
$grants = $this->get_grants();
|
|
||||||
}
|
|
||||||
$priviledes = array('read-current-user-privilege-set' => 'read-current-user-privilege-set');
|
$priviledes = array('read-current-user-privilege-set' => 'read-current-user-privilege-set');
|
||||||
|
|
||||||
if (is_null($user) || $grants[$user] & Api\Acl::READ)
|
if (is_null($user) || $grants[$user] & Api\Acl::READ)
|
||||||
|
Loading…
Reference in New Issue
Block a user