Skip to content

Commit

Permalink
Minor update to support roles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Mar 20, 2020
1 parent 5337365 commit fad565c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,11 @@ function syslog_config_arrays () {

$menu_glyphs[__('Syslog Settings', 'syslog')] = 'fa fa-life-ring';

if (function_exists('auth_augment_roles')) {
auth_augment_roles(__('Normal User'), array('syslog.php'));
auth_augment_roles(__('System Administration'), array('syslog_alerts.php', 'syslog_removal.php', 'syslog_reports.php'));
}

if (isset($_SESSION['syslog_info']) && $_SESSION['syslog_info'] != '') {
$messages['syslog_info'] = array('message' => $_SESSION['syslog_info'], 'type' => 'info');
}
Expand Down

0 comments on commit fad565c

Please sign in to comment.