Skip to content
Snippets Groups Projects
Commit dd27fa61 authored by Thomas Fradet's avatar Thomas Fradet
Browse files

edit droit message

parent 0f010331
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
$PAGE->set_pagelayout('course'); $PAGE->set_pagelayout('course');
$PAGE->set_url($url); $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; $link = $CFG->wwwroot . '/course/view.php?id=' . $courseID;
header("Location: {$link}"); header("Location: {$link}");
exit; exit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment