Skip to content

Commit

Permalink
MDL-37572 - fix typo in has_any_capability()
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Feb 6, 2013
1 parent 8c8d314 commit ef5a821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/manage.php
Expand Up @@ -505,7 +505,7 @@


// Change visibility. // Change visibility.
// Users with no capability to view hidden courses, should not be able to lock themselves out. // Users with no capability to view hidden courses, should not be able to lock themselves out.
if (has_all_capability(array('moodle/course:visibility', 'moodle/course:viewhiddencourses'), $coursecontext)) { if (has_any_capability(array('moodle/course:visibility', 'moodle/course:viewhiddencourses'), $coursecontext)) {
if (!empty($acourse->visible)) { if (!empty($acourse->visible)) {
$url = new moodle_url($baseurl, array('hide' => $acourse->id)); $url = new moodle_url($baseurl, array('hide' => $acourse->id));
$icons[] = $OUTPUT->action_icon($url, new pix_icon('t/hide', get_string('hide'))); $icons[] = $OUTPUT->action_icon($url, new pix_icon('t/hide', get_string('hide')));
Expand Down Expand Up @@ -755,4 +755,4 @@ function print_category_edit(html_table $table, $category, $displaylist, $parent
print_category_edit($table, $cat, $displaylist, $parentslist, $depth+1, $up, $down); print_category_edit($table, $cat, $displaylist, $parentslist, $depth+1, $up, $down);
} }
} }
} }

0 comments on commit ef5a821

Please sign in to comment.