warn if admin tries to rename user anonymous, as it breaks file sharing and Collabora

This commit is contained in:
Ralf Becker 2018-01-22 12:42:09 +01:00
parent 79ee97a22c
commit 9b1cce9fcf
3 changed files with 15 additions and 6 deletions

View File

@ -265,6 +265,13 @@ class admin_account
*/ */
public static function ajax_check(array $data, $changed) 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 // for 1. password field just check password complexity
if ($changed == 'account_passwd') if ($changed == 'account_passwd')
{ {

View File

@ -167,7 +167,7 @@ category %1 has been saved ! admin de Kategorie %1 wurde gespeichert
category deleted. admin de Kategorie gelöscht category deleted. admin de Kategorie gelöscht
category list admin de Kategorieliste category list admin de Kategorieliste
category saved. admin de Kategorie gespeichert category saved. admin de Kategorie gespeichert
certificate admin en Zertifikat certificate admin de Zertifikat
change account_id admin de Änderung der account_id change account_id admin de Änderung der account_id
change acl rights admin de ACL-Rechte ändern change acl rights admin de ACL-Rechte ändern
change config settings admin de Konfiguration der Anwendung ä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. owner "%1" removed, please select group-owner admin de Besitzer "%1" entfernt, bitte einen Gruppenbesitzer auswählen.
passthrough admin de durchgehend passthrough admin de durchgehend
password for smtp-authentication admin de Passwort für SMTP Authentifizierung 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 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 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 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.
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: 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 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. 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 reset filter admin de Filter zurücksetzen

View File

@ -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. 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 determines the order the fields are displayed admin en Determines the order the fields are displayed
disable admin en Disable 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 "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 minifying of javascript and css files admin en Disable minifying of javascript and CSS files
disable wysiwyg-editor admin en Disable WYSIWYG-editor disable wysiwyg-editor admin en Disable WYSIWYG-editor
disabled (not recomended) admin en Disabled (not recommended) 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
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: 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 requested admin en Requested
required pear class mail/mimedecode.php not found. admin en Required PEAR class Mail/mimeDecode.php not found. required pear class mail/mimedecode.php not found. admin en Required PEAR class Mail/mimeDecode.php not found.
reset filter admin en Reset filter 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 up admin en Up
update current email address: admin en Update current email address: update current email address: admin en Update current email address:
updated admin en Updated 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 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 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 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 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 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 usage admin en Usage