Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 58 additions & 1 deletion lib/CalDAV/Principal/ProxyWrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class ProxyWrite implements IProxyWrite
class ProxyWrite implements DAVACL\IACL ,IProxyWrite
{
/**
* Parent principal information.
Expand Down Expand Up @@ -158,4 +158,61 @@ public function getDisplayName()
{
return $this->getName();
}


/**
* 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
*/
public function getACL()
{
return [
[
'privilege' => '{DAV:}read',
'principal' => $this->principalInfo['uri'],
'protected' => true,
],
[
'privilege' => '{DAV:}write',
'principal' => $this->principalInfo['uri'],
'protected' => true,
],
];
}

/**
* @inheritDoc
*/
public function getGroup() {
return null;
}

/**
* @inheritDoc
*/
public function getOwner() {
return $this->principalInfo['uri'];
}

/**
* @inheritDoc
*/
public function getSupportedPrivilegeSet() {
return null;
}

/**
* @inheritDoc
*/
public function setACL(array $acl) {
throw new DAV\Exception\Forbidden('Setting ACL is not allowed here');
}
}
Loading