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