From 9b1cce9fcf8038162dfc8a1a9e09e77a07d22594 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 22 Jan 2018 12:42:09 +0100 Subject: [PATCH] warn if admin tries to rename user anonymous, as it breaks file sharing and Collabora --- admin/inc/class.admin_account.inc.php | 7 +++++++ admin/lang/egw_de.lang | 5 +++-- admin/lang/egw_en.lang | 9 +++++---- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/admin/inc/class.admin_account.inc.php b/admin/inc/class.admin_account.inc.php index 4e825ed06f..fb69c74ce7 100644 --- a/admin/inc/class.admin_account.inc.php +++ b/admin/inc/class.admin_account.inc.php @@ -265,6 +265,13 @@ class admin_account */ public static function ajax_check(array $data, $changed) { + // warn if anonymous user is renamed, as it breaks eg. sharing and Collabora + if ($changed == 'account_lid' && Api\Accounts::id2name($data['account_id']) === 'anonymous' && $data['account_lid'] !== 'anonymous') + { + Api\Json\Response::get()->data(lang("Renaming user 'anonymous' will break file sharing and Collabora Online Office!")); + return; + } + // for 1. password field just check password complexity if ($changed == 'account_passwd') { diff --git a/admin/lang/egw_de.lang b/admin/lang/egw_de.lang index 8358ae5353..efe05be426 100644 --- a/admin/lang/egw_de.lang +++ b/admin/lang/egw_de.lang @@ -167,7 +167,7 @@ category %1 has been saved ! admin de Kategorie %1 wurde gespeichert category deleted. admin de Kategorie gelöscht category list admin de Kategorieliste category saved. admin de Kategorie gespeichert -certificate admin en Zertifikat +certificate admin de Zertifikat change account_id admin de Änderung der account_id change acl rights admin de ACL-Rechte ändern change config settings admin de Konfiguration der Anwendung ändern @@ -603,7 +603,7 @@ own install id: admin de eigene Install-ID owner "%1" removed, please select group-owner admin de Besitzer "%1" entfernt, bitte einen Gruppenbesitzer auswählen. passthrough admin de durchgehend password for smtp-authentication admin de Passwort für SMTP Authentifizierung -password to unlock encrypted p12 admin en Passwort zum Entsperren von verschlüsseltem p12 +password to unlock encrypted p12 admin de Passwort zum Entsperren von verschlüsseltem p12 password updated admin de Passwort aktualisiert passwords and/or attributes of %1 accounts changed admin de Passwörter und/oder Attribute von %1 Benutzern geändert passwords require a minimum number of characters admin de Passworte benötigen diese Mindestanzahl Zeichen @@ -660,6 +660,7 @@ remove admin de Entfernen remove all users from this group admin de Entferne alle Benutzer aus dieser Gruppe. remove all users from this group ? admin de Entferne alle Benutzer aus dieser Gruppe? removing access for groups may cause problems for data in this category. are you sure? users in these groups may no longer have access: admin de Sind Sie sicher? Den Zugriff für Gruppen zu nehmen kann zu Problemen mit den Daten dieser Kategorie führen. Benutzer dieser Gruppen haben möglicherweise keinen Zugriff mehr: +renaming user 'anonymous' will break file sharing and collabora online office! admin de Umbenennen des Benutzers 'anonymous' verhindert das Sharen von Dateien und die Benutzung von Collabora Online Office! requested admin de angefordert required pear class mail/mimedecode.php not found. admin de Die benötigte Classe PEAR (Mail/mimeDecode.php) wurde nicht gefunden. reset filter admin de Filter zurücksetzen diff --git a/admin/lang/egw_en.lang b/admin/lang/egw_en.lang index 0a0b235705..b95aef8576 100644 --- a/admin/lang/egw_en.lang +++ b/admin/lang/egw_en.lang @@ -271,8 +271,8 @@ description can not exceed 255 characters in length ! admin en Description can n destination account #%1 does exist and is not renamed itself! can not merge accounts, it will violate unique contains. delete with transfer of data instead. admin en Destination account #%1 does exist and is NOT renamed itself! Can not merge accounts, it will violate unique contains. Delete with transfer of data instead. determines the order the fields are displayed admin en Determines the order the fields are displayed disable admin en Disable -disable all admin en Disable all disable "auto completion" of the login form admin en Disable "auto completion" of the login form +disable all admin en Disable all disable minifying of javascript and css files admin en Disable minifying of javascript and CSS files disable wysiwyg-editor admin en Disable WYSIWYG-editor disabled (not recomended) admin en Disabled (not recommended) @@ -660,6 +660,7 @@ remove admin en Remove remove all users from this group admin en Remove all users from this group remove all users from this group ? admin en Remove all users from this group? removing access for groups may cause problems for data in this category. are you sure? users in these groups may no longer have access: admin en Removing access for groups may cause problems for data in this category. Are you sure? Users in these groups may no longer have access: +renaming user 'anonymous' will break file sharing and collabora online office! admin en Renaming user 'anonymous' will break file sharing and Collabora Online Office! requested admin en Requested required pear class mail/mimedecode.php not found. admin en Required PEAR class Mail/mimeDecode.php not found. reset filter admin en Reset filter @@ -820,10 +821,10 @@ unwilling to save category with current settings. check for inconsistency: admin up admin en Up update current email address: admin en Update current email address: updated admin en Updated -upload your background image or enter the URL admin en Upload your background image or enter the URL +upload your background image or enter the url admin en Upload your background image or enter the URL upload your certificate .p12/.pfx file admin en Upload your certificate .p12/.pfx file -upload your favicon or enter the URL admin en Upload your favicon or enter the URL -upload your logo or enter the URL admin en Upload your logo or enter the URL +upload your favicon or enter the url admin en Upload your favicon or enter the URL +upload your logo or enter the url admin en Upload your logo or enter the URL uppercase, lowercase, number, special char admin en Uppercase, lowercase, number, special char url of the egroupware installation, eg. http://domain.com/egroupware admin en URL of the EGroupware installation, e.g. http://domain.com/egroupware usage admin en Usage