mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-8299 - Wrong capability on review.php. Merged from MOODLE_17_STABLE.
This commit is contained in:
parent
f9cecaf2f1
commit
52742e6f05
1 changed files with 1 additions and 2 deletions
|
@ -46,8 +46,7 @@
|
|||
$options = quiz_get_reviewoptions($quiz, $attempt, $context);
|
||||
$popup = $isteacher ? 0 : $quiz->popup; // Controls whether this is shown in a javascript-protected window.
|
||||
|
||||
// this capability is not correct, need to find the right one
|
||||
if (!has_capability('mod/quiz:manage', $context)) {
|
||||
if (!has_capability('mod/quiz:viewreports', $context)) {
|
||||
if (!$attempt->timefinish) {
|
||||
redirect('attempt.php?q='.$quiz->id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue