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);