Skip to content

Commit

Permalink
Merge branch 'MDL-38474-23' of git://github.com/FMCorz/moodle into MO…
Browse files Browse the repository at this point in the history
…ODLE_23_STABLE
  • Loading branch information
Damyon Wiese committed Mar 15, 2013
2 parents 1f84f2e + f75011f commit 6e42741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/lib.php
Expand Up @@ -645,7 +645,7 @@ public final function check_capability() {
$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);
Expand Down

0 comments on commit 6e42741

Please sign in to comment.