mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
fixing a typo
This commit is contained in:
parent
0f5660f721
commit
294a176fc7
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
// no roles to display yet?
|
// no roles to display yet?
|
||||||
if (empty($rolenames)) {
|
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);
|
redirect($CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id);
|
||||||
} else {
|
} else {
|
||||||
error ('No participants found for this course');
|
error ('No participants found for this course');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue