Skip to content

Commit

Permalink
fix: make access denied message a bit clearer
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Jul 22, 2024
1 parent c3c9522 commit 71b009a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function checkFileAccess(IStorage $storage, string $path, bool $isDir = f
$e = new \RuntimeException('Access denied for path ' . $path . ' that is ' . ($isDir ? '' : 'not ') . 'a directory and matches rules: ' . json_encode($match));
$this->logger->debug($e->getMessage(), ['exception' => $e]);
// All Checks of one operation matched: prevent access
throw new ForbiddenException('Access denied', false);
throw new ForbiddenException('Access denied by access control', false);
}
}

Expand Down

0 comments on commit 71b009a

Please sign in to comment.