Skip to content
Browse files

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

…ODLE_23_STABLE
  • Loading branch information...
2 parents 1f84f2e + f75011f commit 6e4274111690f9eaac968dbbda2cec8cd698ceb5 @damyon damyon committed Mar 15, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
2 repository/lib.php
@@ -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 6e42741

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