aboutsummaryrefslogtreecommitdiff
path: root/lib/models/Courseware/StructuralElement.php
diff options
context:
space:
mode:
authorRon Lucke <lucke@elan-ev.de>2023-01-31 09:02:38 +0000
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-01-31 09:02:38 +0000
commitef8f85c9bd02675a3e250e48ecdc22cd66af4a9b (patch)
tree46593b7188fe4bd848d5754d1737d592316e2d55 /lib/models/Courseware/StructuralElement.php
parent2a8091c0f8e625a70e72dbe6438a74af14451978 (diff)
Vererbung von Lese- und Schreibrechten in CW
Closes #2102 and #2094 Merge request studip/studip!1360
Diffstat (limited to 'lib/models/Courseware/StructuralElement.php')
-rw-r--r--lib/models/Courseware/StructuralElement.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/models/Courseware/StructuralElement.php b/lib/models/Courseware/StructuralElement.php
index ba51238..c7087a7 100644
--- a/lib/models/Courseware/StructuralElement.php
+++ b/lib/models/Courseware/StructuralElement.php
@@ -837,6 +837,8 @@ SQL;
'position' => $parent->countChildren(),
'payload' => $this->payload,
'image_id' => $file_ref_id,
+ 'read_approval' => $parent->read_approval,
+ 'write_approval' => $parent->write_approval
]);
$element->store();
@@ -944,6 +946,8 @@ SQL;
'purpose' => $this->purpose,
'position' => $parent->countChildren(),
'payload' => $this->payload,
+ 'read_approval' => $parent->read_approval,
+ 'write_approval' => $parent->write_approval
]);
$element->store();