Skip to content
Snippets Groups Projects
Commit 2c4b3758 authored by Rasmus Fuhse's avatar Rasmus Fuhse Committed by David Siegfried
Browse files

Resolve "OER Campus: Aktion „Zugriffszahlen“ für ein Lernmaterial kann nicht aufgerufen werden"

Closes #1251

Merge request studip/studip!1225
parent 75129b0a
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ class Oer_MymaterialController extends AuthenticatedController
_('Zugriffszahlen für %s'),
$material->name
));
if (!$GLOBALS['perm']->have_perm('root') && $material->user_id && $material->user_id !== $GLOBALS['user']->id) {
if (!$GLOBALS['perm']->have_perm('root') && !$material->isMine()) {
throw new AccessDeniedException();
}
if (Request::get("export")) {
......
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