Skip to content
Snippets Groups Projects
Commit 01d63183 authored by André Noack's avatar André Noack Committed by André Noack
Browse files

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

parent 44a131cd
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);
}
$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.
Please register or to comment