2017-10-01 10:03:30 -04:00
|
|
|
<?php
|
2025-06-30 09:04:05 -04:00
|
|
|
|
2017-10-01 10:03:30 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-10-01 10:03:30 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCA\DAV\CalDAV\Principal;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class User
|
|
|
|
|
*
|
|
|
|
|
* @package OCA\DAV\CalDAV\Principal
|
|
|
|
|
*/
|
|
|
|
|
class User extends \Sabre\CalDAV\Principal\User {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns a list of ACE's for this node.
|
|
|
|
|
*
|
|
|
|
|
* Each ACE has the following properties:
|
|
|
|
|
* * 'privilege', a string such as {DAV:}read or {DAV:}write. These are
|
|
|
|
|
* currently the only supported privileges
|
|
|
|
|
* * 'principal', a url to the principal who owns the node
|
|
|
|
|
* * 'protected' (optional), indicating that this ACE is not allowed to
|
|
|
|
|
* be updated.
|
|
|
|
|
*
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
2020-04-10 10:51:06 -04:00
|
|
|
public function getACL() {
|
2017-10-01 10:03:30 -04:00
|
|
|
$acl = parent::getACL();
|
|
|
|
|
$acl[] = [
|
|
|
|
|
'privilege' => '{DAV:}read',
|
|
|
|
|
'principal' => '{DAV:}authenticated',
|
|
|
|
|
'protected' => true,
|
|
|
|
|
];
|
|
|
|
|
return $acl;
|
|
|
|
|
}
|
|
|
|
|
}
|