Admin: change delete user filemanager hook to move home dir, but only search /home for other files

- Translation from Birgit
This commit is contained in:
nathangray 2019-11-19 10:08:58 -07:00
parent 091ce6dea7
commit 8b503dbae3
4 changed files with 5 additions and 4 deletions

View File

@ -325,7 +325,7 @@ class admin_account
$app = 'filemanager';
$sel_options['delete_apps'][] = array(
'value' => $app,
'label' => lang($app) . ': ' . lang('home directory')
'label' => lang($app) . ': /home'
);
$content['delete_apps'][] = $app;
}

View File

@ -201,6 +201,7 @@ change config settings admin de Konfiguration der Anwendung ändern
change domain of email address and aliases admin de ändert Domain von E-Mail-Adressen oder Aliase
change login screen message admin de Nachricht der Startseite ändern
change owner admin de Besitzer ändern
change owner of found files to the new user, and move the home folder to /home/new-user/old-home-username. admin de Ändert den Besitzer der gefundenen Dateien in /home auf den neuen Benutzer und verschiebt den Benutzerordner in /home/new-user/old-home-username.
change password for %1 admin de Ändern des Passworts für %1
change password hash to admin de Passwort Verschlüsselung ändern in
changed password hash for %1 to %2. admin de Passwort Verschlüsselung für %1 ändern in %2.

View File

@ -201,7 +201,7 @@ change config settings admin en Change config settings
change domain of email address and aliases admin en change domain of email address and aliases
change login screen message admin en Change login screen message
change owner admin en Change owner
change owner of found files to the new user, and move the home folder to /home/new-user/old-home-username. admin en Found files will have owner changed to the new user. The home folder will be moved to /home/new-user/old-home-username.
change owner of found files to the new user, and move the home folder to /home/new-user/old-home-username. admin en Files in /home will have owner changed to the new user. The home folder will be moved to /home/new-user/old-home-username.
change password for %1 admin en Change password for %1
change password hash to admin en Change password hash to
changed password hash for %1 to %2. admin en Changed password hash for %1 to %2.

View File

@ -110,9 +110,9 @@ class Hooks
throw new Api\Exception\AssertionFailed(__METHOD__.'('.array2string($data).') account_lid NOT set!');
}
// Other files
// Other files in home
Api\Vfs::find(
'/',
'/home',
array('user' => $data['account_lid']),
$data['new_owner'] ? 'EGroupware\Api\Vfs::chown' : 'EGroupware\Api\Vfs::remove', $data['new_owner']
);