Commit 0743066e authored by Nigel McNie's avatar Nigel McNie
Browse files

A better error message for when a file can't be accessed because it's in

a view.

As reported by Peter Evans on the forums -
parent 8e03707b
......@@ -47,7 +47,7 @@ else {
if ($viewid && $fileid) {
if (!artefact_in_view($fileid, $viewid)) {
throw new UserException('Artefact ' . $fileid . ' is not in view ' . $viewid);
throw new AccessDeniedException();
if (!can_view_view($viewid)) {
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