mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-44990 logging: Capabilites removed from legacy and standard log.
This commit is contained in:
parent
127daca011
commit
da223c11a5
8 changed files with 2 additions and 98 deletions
|
@ -61,15 +61,4 @@ trait reader {
|
|||
}
|
||||
return $this->store;
|
||||
}
|
||||
|
||||
/**
|
||||
* If the current user can access current store or not.
|
||||
*
|
||||
* @param \context $context
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function can_access(\context $context) {
|
||||
return has_capability('logstore/' . $this->store . ':read', $context);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue