mirror of
https://github.com/moodle/moodle.git
synced 2025-04-12 20:12:15 +02:00
Merge branch 'MDL-74964-master' of https://github.com/lameze/moodle
This commit is contained in:
commit
dc5d5e3da7
@ -55,6 +55,8 @@ if (!$course->visible && !has_capability('moodle/course:viewhiddencourses', cont
|
||||
$PAGE->set_course($course);
|
||||
$PAGE->set_pagelayout('incourse');
|
||||
$PAGE->set_url('/enrol/index.php', array('id'=>$course->id));
|
||||
$PAGE->set_secondary_navigation(false);
|
||||
$PAGE->add_body_class('limitedwidth');
|
||||
|
||||
// do not allow enrols when in login-as session
|
||||
if (\core\session\manager::is_loggedinas() and $USER->loginascontext->contextlevel == CONTEXT_COURSE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user