Skip to content

Commit

Permalink
fix(dav): Thrown forbidden error for authenticated user instead of no…
Browse files Browse the repository at this point in the history
…t found

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Jul 2, 2024
1 parent 40ebd36 commit 9d4b2f1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/dav/lib/Connector/Sabre/DavAclPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,7 @@ public function checkPrivileges($uri, $privileges, $recursion = self::R_PARENT,
}

if ($this->getCurrentUserPrincipal() === $node->getOwner()) {

Check notice

Code scanning / Psalm

PossiblyUndefinedMethod Note

Method Sabre\DAV\INode::getOwner does not exist
throw new Forbidden(
sprintf(
"Access denied",
$type,
$node->getName()
)
);
throw new Forbidden("Access denied");
} else {
throw new NotFound(
sprintf(
Expand Down

0 comments on commit 9d4b2f1

Please sign in to comment.