Permalink
Browse files

fix student access to HotPots in tail of a HotPot quiz chain

  • Loading branch information...
1 parent b5e5962 commit dfdec574d3cda17d6b891c7bb9275450a50ebf26 @gbateson gbateson committed Feb 11, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/hotpot/attempt.php
  2. +1 −1 mod/hotpot/view.php
View
@@ -24,7 +24,7 @@
// make sure this user is enrolled in this course and can access this HotPot
require_login($course);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
- require_capability('mod/hotpot:attempt', $context);
+ require_capability('mod/hotpot:attempt', $context, $USER->id);
$next_url = "$CFG->wwwroot/course/view.php?id=$course->id";
$time = time();
View
@@ -37,7 +37,7 @@
// make sure this user is enrolled in this course and can access this HotPot
require_login($course);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
- require_capability('mod/hotpot:attempt', $context);
+ require_capability('mod/hotpot:attempt', $context, $USER->id);
}
// set nextpage (for error messages)
$nextpage = "$CFG->wwwroot/course/view.php?id=$course->id";

0 comments on commit dfdec57

Please sign in to comment.