Commit d89f2fcb authored by Nigel McNie's avatar Nigel McNie
Browse files

Add parameters to AccessDeniedException calls so they don't make log noise.


Signed-off-by: default avatarNigel McNie <nigel@catalyst.net.nz>
parent f28b40e2
......@@ -48,11 +48,11 @@ else {
if ($viewid && $fileid) {
if (!artefact_in_view($fileid, $viewid)) {
throw new AccessDeniedException();
throw new AccessDeniedException('');
}
if (!can_view_view($viewid)) {
throw new AccessDeniedException();
throw new AccessDeniedException('');
}
$file = artefact_instance_from_id($fileid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment