Skip to content
Browse files

MDL-37572 - fix typo in has_any_capability()

  • Loading branch information...
1 parent 8c8d314 commit ef5a82104ca084be28f3c6339c9d715338bc4369 @danpoltawski danpoltawski committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/manage.php
View
4 course/manage.php
@@ -505,7 +505,7 @@
// Change visibility.
// 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)) {
$url = new moodle_url($baseurl, array('hide' => $acourse->id));
$icons[] = $OUTPUT->action_icon($url, new pix_icon('t/hide', get_string('hide')));
@@ -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);
}
}
-}
+}

0 comments on commit ef5a821

Please sign in to comment.
Something went wrong with that request. Please try again.