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 ...@@ -289,14 +289,12 @@ class StructuralElement extends \SimpleORMap
return true; return true;
} }
return $this->hasReadApproval($user);
$link = StructuralElement::findOneBySQL('target_id = ?', [$this->id]); $link = StructuralElement::findOneBySQL('target_id = ?', [$this->id]);
if ($link) { if ($link) {
return true; return true;
} }
return false; return $this->hasReadApproval($user);
case 'course': case 'course':
if (!$GLOBALS['perm']->have_studip_perm('user', $this->range_id, $user->id)) { if (!$GLOBALS['perm']->have_studip_perm('user', $this->range_id, $user->id)) {
return false; 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