Permalink
Browse files

Merge branch 'w51_MDL-30697_m22_roleslink' of git://github.com/skodak…

…/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 85daa59 + cb6ff0a commit e7af814b0d36c64c889057f82a0d7208fe634490 Sam Hemelryk committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
@@ -3242,7 +3242,7 @@ function make_editing_buttons(stdClass $mod, $absolute = true, $moveselect = tru
}
// Assign
- if (has_capability('moodle/course:managegroups', $modcontext)){
+ if (has_capability('moodle/role:assign', $modcontext)){
$actions[] = new action_link(
new moodle_url('/'.$CFG->admin.'/roles/assign.php', array('contextid' => $modcontext->id)),
new pix_icon('i/roles', $str->assign, 'moodle', array('class' => 'iconsmall')),

0 comments on commit e7af814

Please sign in to comment.