Skip to content
Snippets Groups Projects
Commit 36e7aed5 authored by Thomas Fradet's avatar Thomas Fradet
Browse files
parents d12e149e dd27fa61
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@
$PAGE->set_pagelayout('course');
$PAGE->set_url($url);
if (!has_capability('moodle/course:update', $context = context_course::instance($courseID), $USER->id)) {
if (!has_capability('course/iena:suivi', $context = context_course::instance($courseID), $USER->id)) {
$link = $CFG->wwwroot . '/course/view.php?id=' . $courseID;
header("Location: {$link}");
exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment