mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
give Default and Admins group rights for ImportExport on update too
This commit is contained in:
parent
78d32cdb64
commit
1c89bd7a99
@ -60,11 +60,19 @@ function importexport_upgrade1_9_001()
|
||||
// Not needed - did it wrong
|
||||
return $GLOBALS['setup_info']['importexport']['currentver'] = '1.9.002';
|
||||
}
|
||||
|
||||
function importexport_upgrade1_9_002()
|
||||
{
|
||||
$sql = 'UPDATE egw_importexport_definitions SET allowed_users = '.
|
||||
$GLOBALS['egw_setup']->db->concat("','", 'allowed_users', "','");
|
||||
$GLOBALS['egw_setup']->oProc->query($sql, __LINE__, __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);
|
||||
}
|
||||
|
||||
return $GLOBALS['setup_info']['importexport']['currentver'] = '1.9.003';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user