Browse Source

can_view_reports() can_view() not used anywhere anymore - kill them!

MOODLE_29_STABLE
Dan Marsden 10 years ago
parent
commit
c32a56a565
  1. 18
      locallib.php

18
locallib.php

@ -39,8 +39,6 @@ define('ATT_SORT_LASTNAME', 1);
define('ATT_SORT_FIRSTNAME', 2); define('ATT_SORT_FIRSTNAME', 2);
class attendance_permissions { class attendance_permissions {
private $canview;
private $canviewreports;
private $cantake; private $cantake;
private $canchange; private $canchange;
private $canmanage; private $canmanage;
@ -58,22 +56,6 @@ class attendance_permissions {
$this->context = $context; $this->context = $context;
} }
public function can_view() {
if (is_null($this->canview)) {
$this->canview = has_capability('mod/attendance:view', $this->context);
}
return $this->canview;
}
public function can_view_reports() {
if (is_null($this->canviewreports)) {
$this->canviewreports = has_capability('mod/attendance:viewreports', $this->context);
}
return $this->canviewreports;
}
public function can_take() { public function can_take() {
if (is_null($this->cantake)) { if (is_null($this->cantake)) {
$this->cantake = has_capability('mod/attendance:takeattendances', $this->context); $this->cantake = has_capability('mod/attendance:takeattendances', $this->context);

Loading…
Cancel
Save