Skip to content
Snippets Groups Projects
Commit f2af3dc0 authored by André Noack's avatar André Noack Committed by Jan-Hendrik Willms
Browse files

Resolve "AccessDeniedException in files für Öffentliche Veranstaltung"

parent acaf1a54
No related branches found
No related tags found
No related merge requests found
......@@ -134,12 +134,9 @@ class StandardFolder implements FolderType
}
if ($this->range_type === 'course') {
if (($user_id === null || $user_id === 'nobody') && Config::get()->ENABLE_FREE_ACCESS) {
$range = $this->getRangeObject();
$visible = isset($range) && $range->lesezugriff == 0;
} else {
$visible = Seminar_Perm::get()->have_studip_perm('user', $this->range_id, $user_id);
}
$range = $this->getRangeObject();
$visible = Config::get()->ENABLE_FREE_ACCESS && isset($range) && $range->lesezugriff == 0
|| Seminar_Perm::get()->have_studip_perm('user', $this->range_id, $user_id);
}
return $visible;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment