Project

General

Profile

« Previous | Next » 

Revision ea8eef6f

Added by Jim Pingle almost 14 years ago

Move these permissions to user.priv.inc so they don't get blasted when priv.defs.inc is automatically regenerated.

Conflicts:

etc/inc/priv.defs.inc

View differences:

etc/inc/priv.defs.inc
12 12
$priv_list['page-all']['match'] = array();
13 13
$priv_list['page-all']['match'][] = "*";
14 14

  
15
$priv_list['page-dashboard-all'] = array();
16
$priv_list['page-dashboard-all']['name'] = gettext("WebCfg - Dashboard (all)");
17
$priv_list['page-dashboard-all']['descr'] = gettext("Allow access to all pages required for the dashboard.");
18
$priv_list['page-dashboard-all']['match'] = array();
19
$priv_list['page-dashboard-all']['match'][] = "index.php*";
20
$priv_list['page-dashboard-all']['match'][] = "*.widget.php*";
21
$priv_list['page-dashboard-all']['match'][] = "graph.php*";
22
$priv_list['page-dashboard-all']['match'][] = "graph_cpu.php*";
23
$priv_list['page-dashboard-all']['match'][] = "getstats.php*";
24
$priv_list['page-dashboard-all']['match'][] = "ifstats.php*";
25
$priv_list['page-dashboard-all']['match'][] = "diag_logs_filter_dynamic.php*";
26

  
27 15
$priv_list['page-status-carp'] = array();
28 16
$priv_list['page-status-carp']['name'] = gettext("WebCfg - Status: CARP page");
29 17
$priv_list['page-status-carp']['descr'] = gettext("Allow access to the 'Status: CARP' page.");
......
438 426
$priv_list['page-system-login/logout']['match'] = array();
439 427
$priv_list['page-system-login/logout']['match'][] = "index.php*";
440 428

  
441
$priv_list['page-system-directwidget'] = array();
442
$priv_list['page-system-directwidget']['name'] = "WebCfg - System: Direct access to dashboard widgets.";
443
$priv_list['page-system-directwidget']['descr'] = "Allow direct access to the Dashboard widget pages, required for some widgets using AJAX.";
444
$priv_list['page-system-directwidget']['match'] = array();
445
$priv_list['page-system-directwidget']['match'][] = "*.widget.php*";
446

  
447 429
$priv_list['page-interfaces'] = array();
448 430
$priv_list['page-interfaces']['name'] = gettext("WebCfg - Interfaces: WAN page");
449 431
$priv_list['page-interfaces']['descr'] = gettext("Allow access to the 'Interfaces' page.");
etc/inc/priv/user.priv.inc
2 2

  
3 3
global $priv_list;
4 4

  
5
$priv_list['page-dashboard-all'] = array();
6
$priv_list['page-dashboard-all']['name'] = "WebCfg - Dashboard (all)";
7
$priv_list['page-dashboard-all']['descr'] = "Allow access to all pages required for the dashboard.";
8
$priv_list['page-dashboard-all']['match'] = array();
9
$priv_list['page-dashboard-all']['match'][] = "index.php*";
10
$priv_list['page-dashboard-all']['match'][] = "*.widget.php*";
11
$priv_list['page-dashboard-all']['match'][] = "graph.php*";
12
$priv_list['page-dashboard-all']['match'][] = "graph_cpu.php*";
13
$priv_list['page-dashboard-all']['match'][] = "getstats.php*";
14
$priv_list['page-dashboard-all']['match'][] = "ifstats.php*";
15
$priv_list['page-dashboard-all']['match'][] = "diag_logs_filter_dynamic.php*";
16

  
17
$priv_list['page-dashboard-widgets'] = array();
18
$priv_list['page-dashboard-widgets']['name'] = "WebCfg - System: Direct access to dashboard widgets.";
19
$priv_list['page-dashboard-widgets']['descr'] = "Allow direct access to the Dashboard widget pages, required for some widgets using AJAX.";
20
$priv_list['page-dashboard-widgets']['match'] = array();
21
$priv_list['page-dashboard-widgets']['match'][] = "*.widget.php*";
22

  
5 23
$priv_list['user-shell-access'] = array();
6 24
$priv_list['user-shell-access']['name']  = "User - System - Shell account access";
7 25
$priv_list['user-shell-access']['descr'] = "Indicates whether the user is able to login for ".

Also available in: Unified diff