aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-22 13:34:19 +0200
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-05-22 13:34:19 +0200
commit9123e974e4ccaf9fdf21f077f968c006ce9a68b3 (patch)
treefb5048cc57384edf5248ec1f1e0c31fb19b13739
parent3d9350a77cdf5eb88604acb565829981e174321a (diff)
re #2033
-rw-r--r--lib/models/Courseware/StructuralElement.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index 813d6cb..deaab1a 100644
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -371,7 +371,7 @@ class StructuralElement extends \SimpleORMap
*/
public function hasEditingPermission($user): bool
{
- $unit = $unit = $this->findUnit();
+ $unit = $this->findUnit();
return $GLOBALS['perm']->have_perm('root', $user->id)
|| $GLOBALS['perm']->have_studip_perm(
$unit->config['editing_permission'],