From cb6ff0a71cf31d76da5764de3ad56013397935ba Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 17 Dec 2011 14:46:47 +0100 Subject: [PATCH] MDL-30697 fix incorrect capability for role assign button Credit goes to Alexander Bias. --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index 8a9b0d21fa0..5c5249fe8a2 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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')),