Skip to content
Permalink
Browse files

Admin and teacher can see a blocked exercise see BT#14880

  • Loading branch information...
jmontoyaa committed Sep 28, 2018
1 parent a810386 commit bfd41371004e10d81db2eeefe844e35a68466fc7
Showing with 2 additions and 2 deletions.
  1. +2 −2 main/exercise/overview.php
@@ -29,6 +29,7 @@
$objExercise = new Exercise();
$result = $objExercise->read($exercise_id);
if (!$result) {
api_not_allowed(true);
}
@@ -145,7 +146,7 @@
$learnpath_id,
$learnpath_item_id,
null,
false
true
);
// Exercise is not visible remove the button
@@ -190,7 +191,6 @@
$blockShowAnswers = true;
}
}
if (!empty($attempts)) {
$i = $counter;
foreach ($attempts as $attempt_result) {

0 comments on commit bfd4137

Please sign in to comment.
You can’t perform that action at this time.