From 839ce8ec7b71bbdcfc141b7b1fc42d900bf36ce5 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Thu, 13 Aug 2015 21:54:37 +1200 Subject: [PATCH] function can_be_listed not used anywhere --- locallib.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/locallib.php b/locallib.php index e33e336..9a2296b 100644 --- a/locallib.php +++ b/locallib.php @@ -45,7 +45,6 @@ class attendance_permissions { private $canmanagetemp; // Can manage temporary users. private $canchangepreferences; private $canexport; - private $canbelisted; private $canaccessallgroups; private $cm; @@ -118,14 +117,6 @@ class attendance_permissions { return $this->canexport; } - public function can_be_listed() { - if (is_null($this->canbelisted)) { - $this->canbelisted = has_capability('mod/attendance:canbelisted', $this->context, null, false); - } - - return $this->canbelisted; - } - public function can_access_all_groups() { if (is_null($this->canaccessallgroups)) { $this->canaccessallgroups = has_capability('moodle/site:accessallgroups', $this->context);