Permalink
Browse files

MDL-35073 badges: passed the session key in the enable access URL

  • Loading branch information...
1 parent 31f2822 commit c517765430343665b766e752b0fe97b846f0f8dd @markn86 markn86 committed Apr 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 badges/renderer.php
View
@@ -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());

0 comments on commit c517765

Please sign in to comment.