From 8837854d682695f3a94e9e6b852293811650f9b2 Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Sat, 16 Jul 2011 17:02:47 +0400 Subject: [PATCH] Fixed bug with mod/attforblock:canbelisted for user with admin role --- locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }