mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
change felamimail run rights to new mail app, or if no felamimail run rights found, give Default group run rights
This commit is contained in:
parent
a0213fd5a3
commit
20b89bff05
@ -6,11 +6,22 @@
|
|||||||
* @package mail
|
* @package mail
|
||||||
* @subpackage setup
|
* @subpackage setup
|
||||||
* @author Stylite AG [info@stylite.de]
|
* @author Stylite AG [info@stylite.de]
|
||||||
* @copyright (c) 2013 by Stylite AG <info-AT-stylite.de>
|
* @copyright (c) 2014 by Stylite AG <info-AT-stylite.de>
|
||||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||||
* @version $Id$
|
* @version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// give Default group rights for new mail app
|
// change felamimail run rights to new mail app
|
||||||
|
$GLOBALS['egw_setup']->db->update('egw_acl', array(
|
||||||
|
'acl_appname' => 'mail',
|
||||||
|
), array(
|
||||||
|
'acl_appname' => 'felamimail',
|
||||||
|
'acl_location' => 'run',
|
||||||
|
), __LINE__, __FILE__);
|
||||||
|
|
||||||
|
// if no rows/rights found, give Default group rights
|
||||||
|
if (!$GLOBALS['egw_setup']->db->affected_rows())
|
||||||
|
{
|
||||||
$defaultgroup = $GLOBALS['egw_setup']->add_account('Default','Default','Group',False,False);
|
$defaultgroup = $GLOBALS['egw_setup']->add_account('Default','Default','Group',False,False);
|
||||||
$GLOBALS['egw_setup']->add_acl('mail','run',$defaultgroup);
|
$GLOBALS['egw_setup']->add_acl('mail','run',$defaultgroup);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user