add empty methods updatePrincipal and searchPrincipals and change method getPrincipalByPath to work with sabredav 1.6
This commit is contained in:
parent
cc15852386
commit
0d2f1688e4
1 changed files with 3 additions and 1 deletions
|
@ -90,7 +90,7 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
|
|||
* @return array
|
||||
*/
|
||||
public function getPrincipalByPath($path) {
|
||||
list($prefix,$name) = Sabre_DAV_URLUtil::splitPath($path);
|
||||
list($prefix,$name) = explode('/', $path);
|
||||
|
||||
if ($prefix == 'principals' && OC_User::userExists($name)) {
|
||||
return array(
|
||||
|
@ -159,4 +159,6 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend {
|
|||
public function setGroupMemberSet($principal, array $members) {
|
||||
throw new Sabre_DAV_Exception('Setting members of the group is not supported yet');
|
||||
}
|
||||
function updatePrincipal($path, $mutations){return 0;}
|
||||
function searchPrincipals($prefixPath, array $searchProperties){return 0;}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue