From ddc93e9af8ff0ae2c31e6e2b2ea3cd310449fcfa Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Jan 2014 09:31:14 +0000 Subject: [PATCH] install new mail app automatic and give default group run rights to it --- mail/setup/default_records.inc.php | 16 ++++++++++++++++ mail/setup/setup.inc.php | 1 + setup/admin_account.php | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 mail/setup/default_records.inc.php diff --git a/mail/setup/default_records.inc.php b/mail/setup/default_records.inc.php new file mode 100644 index 0000000000..4be8539b34 --- /dev/null +++ b/mail/setup/default_records.inc.php @@ -0,0 +1,16 @@ + + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ + +// give Default group rights for new mail app +$defaultgroup = $GLOBALS['egw_setup']->add_account('Default','Default','Group',False,False); +$GLOBALS['egw_setup']->add_acl('mail','run',$defaultgroup); diff --git a/mail/setup/setup.inc.php b/mail/setup/setup.inc.php index 6e82727c72..8097fa27a0 100644 --- a/mail/setup/setup.inc.php +++ b/mail/setup/setup.inc.php @@ -17,6 +17,7 @@ $setup_info['mail']['version'] = '1.9.001'; $setup_info['mail']['app_order'] = 2; $setup_info['mail']['enable'] = 1; $setup_info['mail']['index'] = 'mail.mail_ui.index&ajax=true'; +$setup_info['mail']['autoinstall'] = true; // install automatically on update $setup_info['mail']['author'] = 'Stylite AG'; $setup_info['mail']['license'] = 'GPL'; diff --git a/setup/admin_account.php b/setup/admin_account.php index 6e53479a17..4c7afc28e0 100644 --- a/setup/admin_account.php +++ b/setup/admin_account.php @@ -122,7 +122,7 @@ else } // Group perms for the default group - $GLOBALS['egw_setup']->add_acl(array('addressbook','calendar','infolog','felamimail','filemanager','preferences','manual','groupdav','notifications','syncml','importexport','activesync'),'run',$defaultgroupid); + $GLOBALS['egw_setup']->add_acl(array('addressbook','calendar','infolog','mail','filemanager','preferences','manual','groupdav','notifications','timesheet','importexport','activesync'),'run',$defaultgroupid); $apps = array(); foreach($GLOBALS['egw_setup']->db->select($GLOBALS['egw_setup']->applications_table,'app_name','app_enabled < 3',__LINE__,__FILE__) as $row)