Browse Source

Fixed bug with mod/attforblock:canbelisted for user with admin role

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
8837854d68
  1. 2
      locallib.php

2
locallib.php

@ -103,7 +103,7 @@ class attforblock_permissions {
public function can_be_listed() { public function can_be_listed() {
if (is_null($this->canbelisted)) if (is_null($this->canbelisted))
$this->canbelisted = has_capability('mod/attforblock:canbelisted', $this->context); $this->canbelisted = has_capability('mod/attforblock:canbelisted', $this->context, null, false);
return $this->canbelisted; return $this->canbelisted;
} }

Loading…
Cancel
Save