Maintenance Gitlab - Jeudi 09 Décembre 2021 à partir de 10h - Mises à jour de sécurité

Commit 36e7aed5 authored by Thomas Fradet's avatar Thomas Fradet
Browse files
parents d12e149e dd27fa61
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment