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

[UPSTREAM] Make files in the public site files directory available to...

[UPSTREAM] Make files in the public site files directory available to everyone, regardless of whether those files are in the public site menu or not.
parent 1e235db6
......@@ -69,7 +69,6 @@ else {
// If the file is in the public directory, it's fine to serve
$fileispublic = $file->get('parent') == ArtefactTypeFolder::admin_public_folder_id();
$fileispublic &= $file->get('institution') == 'mahara';
$fileispublic &= record_exists('site_menu', 'file', $fileid, 'public', 1);
if (!$fileispublic) {
// If the file is in the logged in menu and the user is logged in then
......
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