diff --git a/locallib.php b/locallib.php index 0595967..ff8f76f 100644 --- a/locallib.php +++ b/locallib.php @@ -103,7 +103,7 @@ class attforblock_permissions { public function can_be_listed() { 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; }