Signed-off-by: Louis Chemineau <louis@chmn.me>
// Check if read-only and on whether permission can download is both set and disabled.
$canDownload = $attributes->getAttribute('permissions', 'download');
if ($canDownload !== null && !$canDownload) {
- throw new Forbidden('Access to this resource has been denied because it is in view-only mode.');
+ throw new Forbidden('Access to this shared resource has been denied because its download permission is disabled.');
}
} catch (NotFound $e) {
// File not found