Skip to content
Snippets Groups Projects
Commit 43450d01 authored by Ron Lucke's avatar Ron Lucke Committed by Marcus Eibrink-Lunzenauer
Browse files

CW Aufgaben können nicht bearbeitet werden

Closes #5011

Merge request studip/studip!3760
parent 1cd587fa
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,7 @@ class StructuralElement extends \SimpleORMap implements \PrivacyObject, \Feedbac
case 'course':
$unit = $this->findUnit();
if ($unit->permission_scope === 'unit') {
if ($unit->permission_scope === 'unit' && !$this->isTask()) {
return $unit->canEditContent($user);
} else {
$hasEditingPermission = $this->hasEditingPermission($user, $unit);
......
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