MDL-35073 badges: passed the session key in the enable access URL
authorMark Nelson <markn@moodle.com>
Fri, 5 Apr 2013 09:10:43 +0000 (17:10 +0800)
committerMark Nelson <markn@moodle.com>
Fri, 5 Apr 2013 09:10:43 +0000 (17:10 +0800)
badges/renderer.php

index d78c54b..6c7dc92 100644 (file)
@@ -231,6 +231,7 @@ class core_badges_renderer extends plugin_renderer_base {
             if ($badge->status == BADGE_STATUS_INACTIVE || $badge->status == BADGE_STATUS_INACTIVE_LOCKED) {
                 $url = new moodle_url(qualified_me());
                 $url->param('activate', $badge->id);
+                $url->param('sesskey', sesskey());
                 $actions .= $this->output->action_icon($url, new pix_icon('t/show', get_string('activate', 'badges'))) . " ";
             } else {
                 $url = new moodle_url(qualified_me());