From ef5a82104ca084be28f3c6339c9d715338bc4369 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 6 Feb 2013 14:47:29 +0800 Subject: [PATCH] MDL-37572 - fix typo in has_any_capability() --- course/manage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/course/manage.php b/course/manage.php index 8a95b28a035bc..c3bb87243235f 100644 --- a/course/manage.php +++ b/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); } } -} \ No newline at end of file +}