Permalink
Browse files

Merge branch 'MDL-38474-24' of git://github.com/FMCorz/moodle into MO…

…ODLE_24_STABLE
  • Loading branch information...
2 parents 54c0c9e + abf0c9f commit cd824e74d8545578f06bca7eed5ddc78c7fac0dd @damyon damyon committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -645,7 +645,7 @@ public static function get_types($visible=null) {
$currentcontext = $this->context;
// Ensure that the user can view the repository in the current context.
- $can = has_capability('repository/'.$this->type.':view', $this->currentcontext);
+ $can = has_capability('repository/'.$this->type.':view', $currentcontext);
// Context in which the repository has been created.
$repocontext = context::instance_by_id($this->instance->contextid);

0 comments on commit cd824e7

Please sign in to comment.