Skip to content

Commit

Permalink
Necessary code changes to make browser plugin properly work
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Mar 17, 2016
1 parent 7d638fd commit 520724d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/dav/lib/carddav/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ protected function getAddressbookHomeForPrincipal($principal) {
list(, $principalId) = URLUtil::splitPath($principal);
return self::ADDRESSBOOK_ROOT . '/users/' . $principalId;
}
if (strrpos($principal, 'principals/groups', -strlen($principal)) !== false) {
list(, $principalId) = URLUtil::splitPath($principal);
return self::ADDRESSBOOK_ROOT . '/groups/' . $principalId;
}
if (strrpos($principal, 'principals/system', -strlen($principal)) !== false) {
list(, $principalId) = URLUtil::splitPath($principal);
return self::ADDRESSBOOK_ROOT . '/system/' . $principalId;
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/connector/sabre/davaclplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct() {

function checkPrivileges($uri, $privileges, $recursion = self::R_PARENT, $throwExceptions = true) {
$access = parent::checkPrivileges($uri, $privileges, $recursion, false);
if($access === false) {
if($access === false && $throwExceptions) {
/** @var INode $node */
$node = $this->server->tree->getNodeForPath($uri);

Expand Down

0 comments on commit 520724d

Please sign in to comment.