diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2022-04-21 08:09:18 +0000 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2022-04-21 08:09:18 +0000 |
| commit | b76d2a7a6f8c1f4fcc4a9be48eb0f428596da858 (patch) | |
| tree | c8658c5c42a65d9fe81d60076c5c1718f7853f10 | |
| parent | e37ad6674fce690c1d604fb94295955321f6bd45 (diff) | |
fix #937
Closes #937
| -rwxr-xr-x | lib/classes/JsonApi/Routes/Courseware/Authority.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/classes/JsonApi/Routes/Courseware/Authority.php b/lib/classes/JsonApi/Routes/Courseware/Authority.php index 320648b..0f50b48 100755 --- a/lib/classes/JsonApi/Routes/Courseware/Authority.php +++ b/lib/classes/JsonApi/Routes/Courseware/Authority.php @@ -90,6 +90,10 @@ class Authority return false; } + if ($structural_element->range_type === 'user') { + return $structural_element->range_id === $user->id; + } + $perm = $GLOBALS['perm']->have_studip_perm( $structural_element->course->config->COURSEWARE_EDITING_PERMISSION, $structural_element->course->id, |
