Skip to content
Snippets Groups Projects
Commit 00e4f9bf authored by André Noack's avatar André Noack
Browse files

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

parent 8a86838e
No related branches found
No related tags found
No related merge requests found
...@@ -134,12 +134,9 @@ class StandardFolder implements FolderType ...@@ -134,12 +134,9 @@ class StandardFolder implements FolderType
} }
if ($this->range_type === 'course') { if ($this->range_type === 'course') {
if (($user_id === null || $user_id === 'nobody') && Config::get()->ENABLE_FREE_ACCESS) { $range = $this->getRangeObject();
$range = $this->getRangeObject(); $visible = Config::get()->ENABLE_FREE_ACCESS && isset($range) && $range->lesezugriff == 0
$visible = isset($range) && $range->lesezugriff == 0; || Seminar_Perm::get()->have_studip_perm('user', $this->range_id, $user_id);
} else {
$visible = Seminar_Perm::get()->have_studip_perm('user', $this->range_id, $user_id);
}
} }
return $visible; 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