mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-15716 Tightened dataroot security checks and and 'loud' administrator warning
This commit is contained in:
parent
bd2bf45169
commit
bba0beaee2
9 changed files with 142 additions and 10 deletions
|
@ -70,6 +70,11 @@ class block_admin_tree extends block_base {
|
|||
// show hidden pages in tree if hidden page active
|
||||
if ($content->check_access() and (($content->name == $this->section) or !$content->is_hidden())) {
|
||||
$class = ($content->name == $this->section) ? 'link current' : 'link';
|
||||
if ($content->name === 'adminnotifications') {
|
||||
if (admin_critical_warnings_present()) {
|
||||
$class .= ' criticalnotification';
|
||||
}
|
||||
}
|
||||
if ($content->is_hidden()) {
|
||||
$class .= ' hidden';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue