aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem/StandardFile.php
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2025-11-07 10:40:57 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2025-11-07 10:40:57 +0000
commit81488c802adf0491c585765cd75dc2c59b9f90be (patch)
tree926e538620ed1ca31bc99d333eebeab0593c3c9d /lib/filesystem/StandardFile.php
parenta0740346012d4558589dbd01ae93cb0640b438ff (diff)
Resolve "Der OER_PUBLIC_STATUS wird nicht überall respektiert"
Closes #6031 Merge request studip/studip!4596 (cherry picked from commit 5081d774b076867eada91bad5b60c88a8481da1c) f7e2beaf re #6031 : respect OER_PUBLIC_STATUS Co-authored-by: Rasmus Fuhse <fuhse@data-quest.de>
Diffstat (limited to 'lib/filesystem/StandardFile.php')
-rw-r--r--lib/filesystem/StandardFile.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filesystem/StandardFile.php b/lib/filesystem/StandardFile.php
index 61afa39..d290222 100644
--- a/lib/filesystem/StandardFile.php
+++ b/lib/filesystem/StandardFile.php
@@ -315,6 +315,7 @@ class StandardFile implements FileType, ArrayAccess, StandardFileInterface
!$this->isEditable($GLOBALS['user']->id) &&
in_array($this->fileref->content_terms_of_use_id, ['SELFMADE_NONPUB', 'FREE_LICENSE'])
&& $this->fileref->folder->range_type === 'course'
+ && $GLOBALS['perm']->have_perm(Config::get()->OER_PUBLIC_STATUS)
) {
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/suggest_oer/' . $this->fileref->id),