mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merged fix from stable when checking course->guest on site
This commit is contained in:
parent
8e4d40ddb9
commit
56e8032e99
@ -60,8 +60,10 @@
|
||||
$isteacher = isteacher($courseid,$userid);
|
||||
|
||||
//Check for "security" if !course->guest or course->password
|
||||
if ((!$course->guest || $course->password) && (!($isstudent || $isteacher))) {
|
||||
not_found();
|
||||
if ($course->id != SITEID) {
|
||||
if ((!$course->guest || $course->password) && (!($isstudent || $isteacher))) {
|
||||
not_found();
|
||||
}
|
||||
}
|
||||
|
||||
//Check for "security" if the course is hidden or the activity is hidden
|
||||
|
Loading…
x
Reference in New Issue
Block a user