Skip to content
Snippets Groups Projects
Commit 9123e974 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

re #2033

parent 3d9350a7
No related branches found
No related tags found
No related merge requests found
...@@ -371,7 +371,7 @@ class StructuralElement extends \SimpleORMap ...@@ -371,7 +371,7 @@ class StructuralElement extends \SimpleORMap
*/ */
public function hasEditingPermission($user): bool public function hasEditingPermission($user): bool
{ {
$unit = $unit = $this->findUnit(); $unit = $this->findUnit();
return $GLOBALS['perm']->have_perm('root', $user->id) return $GLOBALS['perm']->have_perm('root', $user->id)
|| $GLOBALS['perm']->have_studip_perm( || $GLOBALS['perm']->have_studip_perm(
$unit->config['editing_permission'], $unit->config['editing_permission'],
......
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