mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
create anonymous user with random password when installing or updating to 14.2, as it is required to be able to share files
This commit is contained in:
parent
fffdef027e
commit
cb21285443
@ -234,3 +234,10 @@ foreach(array('','addressbook', 'calendar', 'infolog', 'tracker', 'timesheet', '
|
||||
}
|
||||
$prefs->save_repository(false, 'default');
|
||||
egw_vfs::$is_root = false;
|
||||
|
||||
/**
|
||||
* Create anonymous user for sharing of files
|
||||
*/
|
||||
$GLOBALS['egw_setup']->add_account('NoGroup', 'No', 'Rights', false, false);
|
||||
$anonymous = $GLOBALS['egw_setup']->add_account('anonymous', 'SiteMgr', 'User', 'anonymous', 'NoGroup');
|
||||
$GLOBALS['egw_setup']->add_acl('phpgwapi', 'anonymous', $anonymous);
|
||||
|
@ -53,5 +53,10 @@ function phpgwapi_upgrade14_1()
|
||||
*/
|
||||
function phpgwapi_upgrade14_1_900()
|
||||
{
|
||||
// Create anonymous user for sharing of files
|
||||
$GLOBALS['egw_setup']->add_account('NoGroup', 'No', 'Rights', false, false);
|
||||
$anonymous = $GLOBALS['egw_setup']->add_account('anonymous', 'SiteMgr', 'User', 'anonymous', 'NoGroup');
|
||||
$GLOBALS['egw_setup']->add_acl('phpgwapi', 'anonymous', $anonymous);
|
||||
|
||||
return $GLOBALS['setup_info']['phpgwapi']['currentver'] = '14.2';
|
||||
}
|
Loading…
Reference in New Issue
Block a user