Browse Source

Acerto no review do certificado para imprimir segundas vias

temp
Sesostris Vieira 11 years ago
parent
commit
27f246828b
  1. 5
      review.php

5
review.php

@ -44,12 +44,11 @@ if (!$certificate = $DB->get_record('certificate', array('id'=> $cm->instance)))
print_error('course module is incorrect'); print_error('course module is incorrect');
} }
// Requires a course login // Requires login
require_course_login($course->id, true, $cm); require_login();
// Check the capabilities // Check the capabilities
$context = context_module::instance($cm->id); $context = context_module::instance($cm->id);
require_capability('mod/certificate:view', $context);
// Initialize $PAGE, compute blocks // Initialize $PAGE, compute blocks
$PAGE->set_url('/mod/certificate/review.php', array('id' => $cm->id)); $PAGE->set_url('/mod/certificate/review.php', array('id' => $cm->id));

Loading…
Cancel
Save