Commit 7b641838 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Allow users to download group files they can see without specifying a view

parent db58c8ce
......@@ -81,9 +81,8 @@ else {
if (!$fileinloggedinmenu) {
// Alternatively, if you own the file or you are an admin, it should always work
$fileisavailable = $USER->get('admin') || $file->get('owner') == $USER->get('id');
if (!$fileisavailable) {
if (!$USER->can_view_artefact($file)) {
throw new AccessDeniedException();
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