Browse Source

function can_be_listed not used anywhere

MOODLE_29_STABLE
Dan Marsden 10 years ago
parent
commit
839ce8ec7b
  1. 9
      locallib.php

9
locallib.php

@ -45,7 +45,6 @@ class attendance_permissions {
private $canmanagetemp; // Can manage temporary users. private $canmanagetemp; // Can manage temporary users.
private $canchangepreferences; private $canchangepreferences;
private $canexport; private $canexport;
private $canbelisted;
private $canaccessallgroups; private $canaccessallgroups;
private $cm; private $cm;
@ -118,14 +117,6 @@ class attendance_permissions {
return $this->canexport; 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() { public function can_access_all_groups() {
if (is_null($this->canaccessallgroups)) { if (is_null($this->canaccessallgroups)) {
$this->canaccessallgroups = has_capability('moodle/site:accessallgroups', $this->context); $this->canaccessallgroups = has_capability('moodle/site:accessallgroups', $this->context);

Loading…
Cancel
Save