mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 05:25:08 +02:00
fixing a typo
This commit is contained in:
parent
0f5660f721
commit
294a176fc7
@ -77,7 +77,7 @@
|
||||
|
||||
// no roles to display yet?
|
||||
if (empty($rolenames)) {
|
||||
if (has_capability('moodle/user:assign', $context)) {
|
||||
if (has_capability('moodle/role:assign', $context)) {
|
||||
redirect($CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id);
|
||||
} else {
|
||||
error ('No participants found for this course');
|
||||
|
Loading…
x
Reference in New Issue
Block a user