Fix ACB privileges. Fixes #9519

(cherry picked from commit 18c1de4133)
This commit is contained in:
jim-p 2019-05-11 18:55:28 -04:00
parent 6cb5a93762
commit 7ccb452496
4 changed files with 36 additions and 8 deletions

View File

@ -567,11 +567,23 @@ $priv_list['page-system-packagemanager-installed']['descr'] = gettext("Allow acc
$priv_list['page-system-packagemanager-installed']['match'] = array();
$priv_list['page-system-packagemanager-installed']['match'][] = "pkg_mgr_installed.php*";
$priv_list['page-system-autoconfigbackup'] = array();
$priv_list['page-system-autoconfigbackup']['name'] = gettext("WebCfg - System: Auto COnfig Backup");
$priv_list['page-system-autoconfigbackup']['descr'] = gettext("Configure the auto config backup system.");
$priv_list['page-system-autoconfigbackup']['match'] = array();
$priv_list['page-system-autoconfigbackup']['match'][] = "autoconfigbackup-settings.php*";
$priv_list['page-services-acb'] = array();
$priv_list['page-services-acb']['name'] = gettext("WebCfg - Services: Auto Config Backup: Restore");
$priv_list['page-services-acb']['descr'] = gettext("Restore from auto config backup.");
$priv_list['page-services-acb']['match'] = array();
$priv_list['page-services-acb']['match'][] = "services_acb.php*";
$priv_list['page-services-acb-backup'] = array();
$priv_list['page-services-acb-backup']['name'] = gettext("WebCfg - Services: Auto Config Backup: Backup Now");
$priv_list['page-services-acb-backup']['descr'] = gettext("Create a new auto config backup entry.");
$priv_list['page-services-acb-backup']['match'] = array();
$priv_list['page-services-acb-backup']['match'][] = "services_acb_backup.php*";
$priv_list['page-services-acb-settings'] = array();
$priv_list['page-services-acb-settings']['name'] = gettext("WebCfg - Services: Auto Config Backup: Settings");
$priv_list['page-services-acb-settings']['descr'] = gettext("Configure the auto config backup system.");
$priv_list['page-services-acb-settings']['match'] = array();
$priv_list['page-services-acb-settings']['match'][] = "services_acb_settings.php*";
$priv_list['page-services-captiveportal'] = array();
$priv_list['page-services-captiveportal']['name'] = gettext("WebCfg - Services: Captive Portal");

View File

@ -18,6 +18,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
##|+PRIV
##|*IDENT=page-services-acb
##|*NAME=Services: Auto Config Backup: Restore
##|*DESCR=Restore from auto config backup.
##|*MATCH=services_acb.php*
##|-PRIV
require("guiconfig.inc");
require("acb.inc");

View File

@ -18,6 +18,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
##|+PRIV
##|*IDENT=page-services-acb-backup
##|*NAME=Services: Auto Config Backup: Backup Now
##|*DESCR=Create a new auto config backup entry.
##|*MATCH=services_acb_backup.php*
##|-PRIV
require_once("globals.inc");
require_once("guiconfig.inc");
require_once("acb.inc");

View File

@ -24,10 +24,10 @@
*/
##|+PRIV
##|*IDENT=page-system-autoconfigbackup
##|*NAME=System: Auto COnfig Backup
##|*IDENT=page-services-acb-settings
##|*NAME=Services: Auto Config Backup: Settings
##|*DESCR=Configure the auto config backup system.
##|*MATCH=autoconfigbackup-settings.php*
##|*MATCH=services_acb_settings.php*
##|-PRIV
require_once("guiconfig.inc");