From ec7533f2c7618c641ff77da3242527406ee6522d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 7 May 2011 12:35:29 +0000 Subject: [PATCH] give Default and Admins group rights for ImportExport --- importexport/setup/default_records.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/importexport/setup/default_records.inc.php b/importexport/setup/default_records.inc.php index 7adaa69f93..152b7cfe5c 100644 --- a/importexport/setup/default_records.inc.php +++ b/importexport/setup/default_records.inc.php @@ -34,3 +34,10 @@ while (false !== ($appdir = $egwdir->read())) { importexport_definitions_bo::import( $file ); } } + +// give Default and Admins group rights for ImportExport +foreach(array('Default' => 'Default','Admins' => 'Admin') as $account_lid => $name) +{ + $account_id = $GLOBALS['egw_setup']->add_account($account_lid,$name,'Group',False,False); + $GLOBALS['egw_setup']->add_acl('importexport','run',$account_id); +}