Permalink
Browse files

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

…/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents eabff1a + 9f7189f commit 16e8ccaf5f40734c17107027bf2b4797cecacc11 Sam Hemelryk committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
View
@@ -3174,7 +3174,7 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=-
' alt="'.$str->moveright.'" /></a>'."\n";
}
}
- if (has_capability('moodle/course:managegroups', $modcontext)){
+ if (has_capability('moodle/role:assign', $modcontext)){
$context = get_context_instance(CONTEXT_MODULE, $mod->id);
$assign = '<a class="editing_assign" title="'.$str->assign.'" href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.
$context->id.'"><img src="'.$OUTPUT->pix_url('i/roles') . '" alt="'.$str->assign.'" class="iconsmall"/></a>';

0 comments on commit 16e8cca

Please sign in to comment.