Skip to content
Snippets Groups Projects
Commit 009a9471 authored by Chris Sangwin's avatar Chris Sangwin
Browse files

Chat page should only set context when question id is missing.

parent a6cfa515
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ $questionid = optional_param('questionid', null, PARAM_INT); ...@@ -41,6 +41,7 @@ $questionid = optional_param('questionid', null, PARAM_INT);
if (!$questionid) { if (!$questionid) {
$context = context_system::instance(); $context = context_system::instance();
$PAGE->set_context($context);
require_capability('qtype/stack:usediagnostictools', $context); require_capability('qtype/stack:usediagnostictools', $context);
$urlparams = array(); $urlparams = array();
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment