Proyectos de Subversion Moodle

Rev

Rev 1219 | Rev 1233 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1219 Rev 1221
Línea 37... Línea 37...
37
if (!empty($PAGE->course->id)) {
37
if (!empty($PAGE->course->id)) {
Línea 38... Línea 38...
38
 
38
 
39
    $course = get_course($PAGE->course->id);
39
    $course = get_course($PAGE->course->id);
Línea 40... Línea -...
40
    $course_context = context_course::instance($course->id);
-
 
41
 
40
    $course_context = context_course::instance($course->id);
42
 
-
 
Línea -... Línea 41...
-
 
41
 
43
    $notifyeditingon  = empty($_GET['notifyeditingon']) ? 0 : intval($_GET['notifyeditingon'], 10);
42
    $notifyeditingon  = empty($_GET['notifyeditingon']) ? 0 : intval($_GET['notifyeditingon'], 10);
44
    if ($notifyeditingon) {
43
 
45
 
44
    if ($notifyeditingon) {
46
        if (has_capability('moodle/course:manageactivities', $course_context, $USER->id) || has_capability('moodle/course:viewhiddenactivities', $course_context, $USER->id)) {
45
        if (has_capability('moodle/course:manageactivities', $course_context, $USER->id) || has_capability('moodle/course:viewhiddenactivities', $course_context, $USER->id)) {
47
            $searchURL = false;
46
            $searchURL = false;
48
        } else {
-
 
49
            $searchURL = true;
-
 
50
        }
47
        } else {
Línea 51... Línea 48...
51
    } else {
48
            $searchURL = true;
52
        $searchURL = true;
49
        }