Skip to content
Snippets Groups Projects
Commit 29604e0e authored by Ron Lucke's avatar Ron Lucke Committed by David Siegfried
Browse files

fix #2375

Closes #2375

Merge request studip/studip!1573
parent dd584857
No related branches found
No related tags found
No related merge requests found
......@@ -289,14 +289,12 @@ class StructuralElement extends \SimpleORMap
return true;
}
return $this->hasReadApproval($user);
$link = StructuralElement::findOneBySQL('target_id = ?', [$this->id]);
if ($link) {
return true;
}
return false;
return $this->hasReadApproval($user);
case 'course':
if (!$GLOBALS['perm']->have_studip_perm('user', $this->range_id, $user->id)) {
return false;
......
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