install new mail app automatic and give default group run rights to it

This commit is contained in:
Ralf Becker 2014-01-14 09:31:14 +00:00
parent da6b2e62ab
commit ddc93e9af8
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,16 @@
<?php
/**
* EGroupware - Mail - setup
*
* @link http://www.egroupware.org
* @package mail
* @subpackage setup
* @author Stylite AG [info@stylite.de]
* @copyright (c) 2013 by Stylite AG <info-AT-stylite.de>
* @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);

View File

@ -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';

View File

@ -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)