Skip to content

Commit

Permalink
MDL-35073 badges: passed the session key in the enable access URL
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Apr 5, 2013
1 parent 31f2822 commit c517765
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions badges/renderer.php
Expand Up @@ -231,6 +231,7 @@ public function print_badge_table_actions($badge, $context) {
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());
Expand Down

0 comments on commit c517765

Please sign in to comment.