diff options
author | Simon Rettberg | 2018-02-14 14:15:05 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-14 14:15:05 +0100 |
commit | fadc375c510693a87a2e1acb090605bbeed52fe4 (patch) | |
tree | 1bdc7aaba33993dc88c97fb06234371922a924c3 /inc/dashboard.inc.php | |
parent | [permissionmanager] Fix: False positive for perm validity check (diff) | |
download | slx-admin-fadc375c510693a87a2e1acb090605bbeed52fe4.tar.gz slx-admin-fadc375c510693a87a2e1acb090605bbeed52fe4.tar.xz slx-admin-fadc375c510693a87a2e1acb090605bbeed52fe4.zip |
Global: Only show "Warning" badge at the top if user can view event log,
also hide warnings on the main page from modules the user has no access to
Diffstat (limited to 'inc/dashboard.inc.php')
-rw-r--r-- | inc/dashboard.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/dashboard.inc.php b/inc/dashboard.inc.php index 3db42efb..59d81c2d 100644 --- a/inc/dashboard.inc.php +++ b/inc/dashboard.inc.php @@ -68,7 +68,7 @@ class Dashboard 'url' => urlencode($_SERVER['REQUEST_URI']), 'langs' => Dictionary::getLanguages(true), 'user' => User::getName(), - 'warning' => User::getName() !== false && User::getLastSeenEvent() < Property::getLastWarningId(), + 'warning' => User::getName() !== false && User::hasPermission('.eventlog.*') && User::getLastSeenEvent() < Property::getLastWarningId(), 'needsSetup' => User::getName() !== false && Property::getNeedsSetup() )); } |