]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-19181, doanything should be true"
authordongsheng <dongsheng>
Fri, 14 Aug 2009 09:55:01 +0000 (09:55 +0000)
committerdongsheng <dongsheng>
Fri, 14 Aug 2009 09:55:01 +0000 (09:55 +0000)
repository/lib.php

index 0c1e67e9486844a2e90b34229250cb687b5dd930..46485b9f47ee570734a6dcc51689e8a4197c49f3 100644 (file)
@@ -646,7 +646,7 @@ abstract class repository {
                 if (!$onlyvisible || ($repository->is_visible() && !$repository->disabled)) {
                     // super_called will make sure the parent construct function is called
                     // by repository construct function
-                    $capability = has_capability('repository/'.$repo->repositorytype.':view', $context, $USER->id, false);
+                    $capability = has_capability('repository/'.$repo->repositorytype.':view', $context, $USER->id);
                     if ($is_supported && $capability) {
                         $ret[] = $repository;
                     }