Skip to content
Snippets Groups Projects
Commit df9040e3 authored by Michaela Brückner's avatar Michaela Brückner :unicorn:
Browse files

avoid redundant OER Campus sharing/suggesting action, re #1204

parent e4e30d63
No related branches found
No related tags found
No related merge requests found
......@@ -289,6 +289,7 @@ class StandardFile implements FileType, ArrayAccess, StandardFileInterface
if (Config::get()->OERCAMPUS_ENABLED && Config::get()->OER_ENABLE_SUGGESTIONS &&
$GLOBALS['user']->id !== 'nobody' && $this->fileref->user_id !== $GLOBALS['user']->id &&
!$this->isEditable($GLOBALS['user']->id) &&
in_array($this->fileref->content_terms_of_use_id, ['SELFMADE_NONPUB', 'FREE_LICENSE'])
) {
$actionMenu->addLink(
......
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