diff --git a/controllers/account.go b/controllers/account.go index 3e6a29a9..f85ec21f 100644 --- a/controllers/account.go +++ b/controllers/account.go @@ -259,7 +259,7 @@ func (c *ApiController) Signup() { user.Groups = []string{application.DefaultGroup} } - affected, err := object.AddUser(user) + affected, err := object.AddUser(user, c.GetAcceptLanguage()) if err != nil { c.ResponseError(err.Error()) return diff --git a/controllers/auth.go b/controllers/auth.go index 7e377668..36b6c71a 100644 --- a/controllers/auth.go +++ b/controllers/auth.go @@ -867,7 +867,7 @@ func (c *ApiController) Login() { } var affected bool - affected, err = object.AddUser(user) + affected, err = object.AddUser(user, c.GetAcceptLanguage()) if err != nil { c.ResponseError(err.Error()) return diff --git a/controllers/user.go b/controllers/user.go index a879429e..602142bb 100644 --- a/controllers/user.go +++ b/controllers/user.go @@ -365,7 +365,7 @@ func (c *ApiController) AddUser() { return } - c.Data["json"] = wrapActionResponse(object.AddUser(&user)) + c.Data["json"] = wrapActionResponse(object.AddUser(&user, c.GetAcceptLanguage())) c.ServeJSON() } diff --git a/i18n/locales/ar/data.json b/i18n/locales/ar/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/ar/data.json +++ b/i18n/locales/ar/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/cs/data.json b/i18n/locales/cs/data.json index 37e85c90..2b7116c8 100644 --- a/i18n/locales/cs/data.json +++ b/i18n/locales/cs/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Pouze administrátor může upravit %s.", "The %s is immutable.": "%s je neměnný.", - "Unknown modify rule %s.": "Neznámé pravidlo úpravy %s." + "Unknown modify rule %s.": "Neznámé pravidlo úpravy %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "Oprávnění: \\\"%s\\\" neexistuje" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Zobrazované jméno nemůže být prázdné", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Nové heslo nemůže obsahovat prázdné místo." + "New password cannot contain blank space.": "Nové heslo nemůže obsahovat prázdné místo.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Nepodařilo se importovat uživatele" diff --git a/i18n/locales/de/data.json b/i18n/locales/de/data.json index cd3fea08..7f52c33f 100644 --- a/i18n/locales/de/data.json +++ b/i18n/locales/de/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Nur der Administrator kann das %s ändern.", "The %s is immutable.": "Das %s ist unveränderlich.", - "Unknown modify rule %s.": "Unbekannte Änderungsregel %s." + "Unknown modify rule %s.": "Unbekannte Änderungsregel %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Anzeigename darf nicht leer sein", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Das neue Passwort darf keine Leerzeichen enthalten." + "New password cannot contain blank space.": "Das neue Passwort darf keine Leerzeichen enthalten.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Fehler beim Importieren von Benutzern" diff --git a/i18n/locales/en/data.json b/i18n/locales/en/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/en/data.json +++ b/i18n/locales/en/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/es/data.json b/i18n/locales/es/data.json index f551aa8f..929a527d 100644 --- a/i18n/locales/es/data.json +++ b/i18n/locales/es/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Solo el administrador puede modificar los %s.", "The %s is immutable.": "El %s es inmutable.", - "Unknown modify rule %s.": "Regla de modificación desconocida %s." + "Unknown modify rule %s.": "Regla de modificación desconocida %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "El nombre de pantalla no puede estar vacío", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "La nueva contraseña no puede contener espacios en blanco." + "New password cannot contain blank space.": "La nueva contraseña no puede contener espacios en blanco.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Error al importar usuarios" diff --git a/i18n/locales/fa/data.json b/i18n/locales/fa/data.json index 85150141..088d4e51 100644 --- a/i18n/locales/fa/data.json +++ b/i18n/locales/fa/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "فقط مدیر می‌تواند %s را تغییر دهد.", "The %s is immutable.": "%s غیرقابل تغییر است.", - "Unknown modify rule %s.": "قانون تغییر ناشناخته %s." + "Unknown modify rule %s.": "قانون تغییر ناشناخته %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "نام نمایشی نمی‌تواند خالی باشد", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "رمز عبور جدید نمی‌تواند حاوی فاصله خالی باشد." + "New password cannot contain blank space.": "رمز عبور جدید نمی‌تواند حاوی فاصله خالی باشد.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "عدم موفقیت در وارد کردن کاربران" diff --git a/i18n/locales/fi/data.json b/i18n/locales/fi/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/fi/data.json +++ b/i18n/locales/fi/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/fr/data.json b/i18n/locales/fr/data.json index dc8a137f..1f07b81b 100644 --- a/i18n/locales/fr/data.json +++ b/i18n/locales/fr/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Seul l'administrateur peut modifier le %s.", "The %s is immutable.": "Le %s est immuable.", - "Unknown modify rule %s.": "Règle de modification inconnue %s." + "Unknown modify rule %s.": "Règle de modification inconnue %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Le nom d'affichage ne peut pas être vide", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Le nouveau mot de passe ne peut pas contenir d'espace." + "New password cannot contain blank space.": "Le nouveau mot de passe ne peut pas contenir d'espace.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Échec de l'importation des utilisateurs" diff --git a/i18n/locales/he/data.json b/i18n/locales/he/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/he/data.json +++ b/i18n/locales/he/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/id/data.json b/i18n/locales/id/data.json index 8cab3572..0cfce876 100644 --- a/i18n/locales/id/data.json +++ b/i18n/locales/id/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Hanya admin yang dapat memodifikasi %s.", "The %s is immutable.": "%s tidak dapat diubah.", - "Unknown modify rule %s.": "Aturan modifikasi tidak diketahui %s." + "Unknown modify rule %s.": "Aturan modifikasi tidak diketahui %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "Izin: \\\"%s\\\" tidak ada" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Nama tampilan tidak boleh kosong", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Sandi baru tidak boleh mengandung spasi kosong." + "New password cannot contain blank space.": "Sandi baru tidak boleh mengandung spasi kosong.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Gagal mengimpor pengguna" diff --git a/i18n/locales/it/data.json b/i18n/locales/it/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/it/data.json +++ b/i18n/locales/it/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/ja/data.json b/i18n/locales/ja/data.json index 7f4525bd..31cedf26 100644 --- a/i18n/locales/ja/data.json +++ b/i18n/locales/ja/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "管理者のみが%sを変更できます。", "The %s is immutable.": "%sは不変です。", - "Unknown modify rule %s.": "未知の変更ルール%s。" + "Unknown modify rule %s.": "未知の変更ルール%s。", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "表示名は空にできません", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "新しいパスワードにはスペースを含めることはできません。" + "New password cannot contain blank space.": "新しいパスワードにはスペースを含めることはできません。", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "ユーザーのインポートに失敗しました" diff --git a/i18n/locales/kk/data.json b/i18n/locales/kk/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/kk/data.json +++ b/i18n/locales/kk/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/ko/data.json b/i18n/locales/ko/data.json index 1b60db2d..371919fe 100644 --- a/i18n/locales/ko/data.json +++ b/i18n/locales/ko/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "관리자만 %s을(를) 수정할 수 있습니다.", "The %s is immutable.": "%s 는 변경할 수 없습니다.", - "Unknown modify rule %s.": "미확인 수정 규칙 %s." + "Unknown modify rule %s.": "미확인 수정 규칙 %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "디스플레이 이름은 비어 있을 수 없습니다", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "새 비밀번호에는 공백이 포함될 수 없습니다." + "New password cannot contain blank space.": "새 비밀번호에는 공백이 포함될 수 없습니다.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "사용자 가져오기를 실패했습니다" diff --git a/i18n/locales/ms/data.json b/i18n/locales/ms/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/ms/data.json +++ b/i18n/locales/ms/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/nl/data.json b/i18n/locales/nl/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/nl/data.json +++ b/i18n/locales/nl/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/pl/data.json b/i18n/locales/pl/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/pl/data.json +++ b/i18n/locales/pl/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/pt/data.json b/i18n/locales/pt/data.json index 4a021982..c96b2710 100644 --- a/i18n/locales/pt/data.json +++ b/i18n/locales/pt/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "O %s é imutável.", - "Unknown modify rule %s.": "Regra de modificação %s desconhecida." + "Unknown modify rule %s.": "Regra de modificação %s desconhecida.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Nome de exibição não pode ser vazio", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Falha ao importar usuários" diff --git a/i18n/locales/ru/data.json b/i18n/locales/ru/data.json index ee97e7f6..1ae12099 100644 --- a/i18n/locales/ru/data.json +++ b/i18n/locales/ru/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Только администратор может изменять %s.", "The %s is immutable.": "%s неизменяемый.", - "Unknown modify rule %s.": "Неизвестное изменение правила %s." + "Unknown modify rule %s.": "Неизвестное изменение правила %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "Разрешение: \\\"%s\\\" не существует" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Отображаемое имя не может быть пустым", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Новый пароль не может содержать пробелы." + "New password cannot contain blank space.": "Новый пароль не может содержать пробелы.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Не удалось импортировать пользователей" diff --git a/i18n/locales/sk/data.json b/i18n/locales/sk/data.json index 6d73eedc..ec4d92fa 100644 --- a/i18n/locales/sk/data.json +++ b/i18n/locales/sk/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Len administrátor môže upravovať %s.", "The %s is immutable.": "%s je nemenný.", - "Unknown modify rule %s.": "Neznáme pravidlo úprav %s." + "Unknown modify rule %s.": "Neznáme pravidlo úprav %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "Povolenie: \\\"%s\\\" neexistuje" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Zobrazované meno nemôže byť prázdne", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Nové heslo nemôže obsahovať medzery." + "New password cannot contain blank space.": "Nové heslo nemôže obsahovať medzery.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Nepodarilo sa importovať používateľov" diff --git a/i18n/locales/sv/data.json b/i18n/locales/sv/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/sv/data.json +++ b/i18n/locales/sv/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/tr/data.json b/i18n/locales/tr/data.json index 67632ab5..7cd82c06 100644 --- a/i18n/locales/tr/data.json +++ b/i18n/locales/tr/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Görünen ad boş olamaz", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Yeni şifreniz boşluk karakteri içeremez." + "New password cannot contain blank space.": "Yeni şifreniz boşluk karakteri içeremez.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/uk/data.json b/i18n/locales/uk/data.json index 894f3806..63207c2a 100644 --- a/i18n/locales/uk/data.json +++ b/i18n/locales/uk/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Only admin can modify the %s.", "The %s is immutable.": "The %s is immutable.", - "Unknown modify rule %s.": "Unknown modify rule %s." + "Unknown modify rule %s.": "Unknown modify rule %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Display name cannot be empty", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "New password cannot contain blank space." + "New password cannot contain blank space.": "New password cannot contain blank space.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Failed to import users" diff --git a/i18n/locales/vi/data.json b/i18n/locales/vi/data.json index a62c156b..877a3ed4 100644 --- a/i18n/locales/vi/data.json +++ b/i18n/locales/vi/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "Chỉ những người quản trị mới có thể sửa đổi %s.", "The %s is immutable.": "%s không thể thay đổi được.", - "Unknown modify rule %s.": "Quy tắc thay đổi không xác định %s." + "Unknown modify rule %s.": "Quy tắc thay đổi không xác định %s.", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option." }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "The permission: \\\"%s\\\" doesn't exist" @@ -158,7 +159,8 @@ "Display name cannot be empty": "Tên hiển thị không thể trống", "MFA email is enabled but email is empty": "MFA email is enabled but email is empty", "MFA phone is enabled but phone number is empty": "MFA phone is enabled but phone number is empty", - "New password cannot contain blank space.": "Mật khẩu mới không thể chứa dấu trắng." + "New password cannot contain blank space.": "Mật khẩu mới không thể chứa dấu trắng.", + "the user's owner and name should not be empty": "the user's owner and name should not be empty" }, "user_upload": { "Failed to import users": "Không thể nhập người dùng" diff --git a/i18n/locales/zh/data.json b/i18n/locales/zh/data.json index 05b03bdc..f740c85e 100644 --- a/i18n/locales/zh/data.json +++ b/i18n/locales/zh/data.json @@ -116,7 +116,8 @@ "organization": { "Only admin can modify the %s.": "仅允许管理员可以修改%s", "The %s is immutable.": "%s 是不可变的", - "Unknown modify rule %s.": "未知的修改规则: %s" + "Unknown modify rule %s.": "未知的修改规则: %s", + "adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.": "目前,向'built-in'组织添加新用户的功能已禁用。请注意:'built-in'组织中的所有用户均为Casdoor的全局管理员。请参阅文档:https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself。如果您仍希望为built-in组织创建用户,请转到该组织的设置页面并启用“特权同意”选项。" }, "permission": { "The permission: \\\"%s\\\" doesn't exist": "权限: \\\"%s\\\" 不存在" @@ -158,7 +159,8 @@ "Display name cannot be empty": "显示名称不可为空", "MFA email is enabled but email is empty": "MFA 电子邮件已启用,但电子邮件为空", "MFA phone is enabled but phone number is empty": "MFA 电话已启用,但电话号码为空", - "New password cannot contain blank space.": "新密码不可以包含空格" + "New password cannot contain blank space.": "新密码不可以包含空格", + "the user's owner and name should not be empty": "用户的组织和名称不能为空" }, "user_upload": { "Failed to import users": "导入用户失败" diff --git a/object/init.go b/object/init.go index d5e06639..8e465039 100644 --- a/object/init.go +++ b/object/init.go @@ -154,7 +154,7 @@ func initBuiltInUser() { CreatedIp: "127.0.0.1", Properties: make(map[string]string), } - _, err = AddUser(user) + _, err = AddUser(user, "en") if err != nil { panic(err) } diff --git a/object/init_data.go b/object/init_data.go index 83ca0554..aace7669 100644 --- a/object/init_data.go +++ b/object/init_data.go @@ -342,7 +342,7 @@ func initDefinedUser(user *User) { if user.Properties == nil { user.Properties = make(map[string]string) } - _, err = AddUser(user) + _, err = AddUser(user, "en") if err != nil { panic(err) } diff --git a/object/ldap_conn.go b/object/ldap_conn.go index c43338d3..3209395e 100644 --- a/object/ldap_conn.go +++ b/object/ldap_conn.go @@ -351,7 +351,7 @@ func SyncLdapUsers(owner string, syncUsers []LdapUser, ldapId string) (existUser newUser.Groups = []string{ldap.DefaultGroup} } - affected, err := AddUser(newUser) + affected, err := AddUser(newUser, "en") if err != nil { return nil, nil, err } diff --git a/object/organization.go b/object/organization.go index 88b308e3..18e08f8e 100644 --- a/object/organization.go +++ b/object/organization.go @@ -57,6 +57,7 @@ type Organization struct { Logo string `xorm:"varchar(200)" json:"logo"` LogoDark string `xorm:"varchar(200)" json:"logoDark"` Favicon string `xorm:"varchar(200)" json:"favicon"` + HasPrivilegeConsent bool `xorm:"bool" json:"hasPrivilegeConsent"` PasswordType string `xorm:"varchar(100)" json:"passwordType"` PasswordSalt string `xorm:"varchar(100)" json:"passwordSalt"` PasswordOptions []string `xorm:"varchar(100)" json:"passwordOptions"` diff --git a/object/token_oauth.go b/object/token_oauth.go index 1315c1f6..b17788b0 100644 --- a/object/token_oauth.go +++ b/object/token_oauth.go @@ -764,7 +764,7 @@ func GetWechatMiniProgramToken(application *Application, code string, host strin UserPropertiesWechatUnionId: unionId, }, } - _, err = AddUser(user) + _, err = AddUser(user, "en") if err != nil { return nil, nil, err } diff --git a/object/user.go b/object/user.go index f38ddef1..fdf78c0f 100644 --- a/object/user.go +++ b/object/user.go @@ -25,6 +25,7 @@ import ( "github.com/casdoor/casdoor/conf" "github.com/casdoor/casdoor/faceId" + "github.com/casdoor/casdoor/i18n" "github.com/casdoor/casdoor/proxy" "github.com/casdoor/casdoor/util" "github.com/go-webauthn/webauthn/webauthn" @@ -818,7 +819,7 @@ func UpdateUserForAllFields(id string, user *User) (bool, error) { return affected != 0, nil } -func AddUser(user *User) (bool, error) { +func AddUser(user *User, lang string) (bool, error) { if user.Id == "" { application, err := GetApplicationByUser(user) if err != nil { @@ -834,7 +835,7 @@ func AddUser(user *User) (bool, error) { } if user.Owner == "" || user.Name == "" { - return false, fmt.Errorf("the user's owner and name should not be empty") + return false, fmt.Errorf(i18n.Translate(lang, "user:the user's owner and name should not be empty")) } if CheckUsernameWithEmail(user.Name, "en") != "" { @@ -846,7 +847,7 @@ func AddUser(user *User) (bool, error) { return false, err } if organization == nil { - return false, fmt.Errorf("the organization: %s is not found", user.Owner) + return false, fmt.Errorf(i18n.Translate(lang, "auth:the organization: %s is not found"), user.Owner) } if user.Owner != "built-in" { @@ -855,10 +856,14 @@ func AddUser(user *User) (bool, error) { return false, err } if applicationCount == 0 { - return false, fmt.Errorf("The organization: %s should have one application at least", organization.Owner) + return false, fmt.Errorf(i18n.Translate(lang, "general:The organization: %s should have one application at least"), organization.Owner) } } + if organization.Name == "built-in" && !organization.HasPrivilegeConsent && user.Name != "admin" { + return false, fmt.Errorf(i18n.Translate(lang, "organization:adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.")) + } + if organization.DefaultPassword != "" && user.Password == "123" { user.Password = organization.DefaultPassword } diff --git a/scim/user_handler.go b/scim/user_handler.go index 459171e7..38091bbb 100644 --- a/scim/user_handler.go +++ b/scim/user_handler.go @@ -132,7 +132,7 @@ func AddScimUser(r *scim.Resource) error { return errors.ScimErrorUniqueness } - affect, err := object.AddUser(newUser) + affect, err := object.AddUser(newUser, "en") if err != nil { return err } diff --git a/web/src/OrganizationEditPage.js b/web/src/OrganizationEditPage.js index 6d96e225..e7eadbf3 100644 --- a/web/src/OrganizationEditPage.js +++ b/web/src/OrganizationEditPage.js @@ -13,7 +13,7 @@ // limitations under the License. import React from "react"; -import {Button, Card, Col, Input, InputNumber, Radio, Row, Select, Switch} from "antd"; +import {Button, Card, Col, Input, InputNumber, Popconfirm, Radio, Row, Select, Switch} from "antd"; import * as OrganizationBackend from "./backend/OrganizationBackend"; import * as ApplicationBackend from "./backend/ApplicationBackend"; import * as LdapBackend from "./backend/LdapBackend"; @@ -270,6 +270,25 @@ class OrganizationEditPage extends React.Component { }} /> + { + this.state.organization.name === "built-in" ? ( + + + {Setting.getLabel(i18next.t("organization:Has privilege consent"), i18next.t("organization:Has privilege consent - Tooltip"))} : + + + {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} + okText={i18next.t("general:OK")} + cancelText={i18next.t("general:Cancel")} + > + + + + + ) : null + } {Setting.getLabel(i18next.t("general:Password type"), i18next.t("general:Password type - Tooltip"))} : diff --git a/web/src/locales/ar/data.json b/web/src/locales/ar/data.json index 265cd70d..a9022427 100644 --- a/web/src/locales/ar/data.json +++ b/web/src/locales/ar/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/cs/data.json b/web/src/locales/cs/data.json index 42bfcdb0..90a1a26e 100644 --- a/web/src/locales/cs/data.json +++ b/web/src/locales/cs/data.json @@ -616,6 +616,9 @@ "All": "Vše", "Edit Organization": "Upravit organizaci", "Follow global theme": "Sledovat globální téma", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Počáteční skóre", "Init score - Tooltip": "Počáteční body udělené uživatelům při registraci", "Is profile public": "Je profil veřejný", diff --git a/web/src/locales/de/data.json b/web/src/locales/de/data.json index 13b870d6..1f892097 100644 --- a/web/src/locales/de/data.json +++ b/web/src/locales/de/data.json @@ -616,6 +616,9 @@ "All": "Alle", "Edit Organization": "Organisation bearbeiten", "Follow global theme": "Folge dem globalen Theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Initialer Score", "Init score - Tooltip": "Anfangspunkte, die Benutzern bei der Registrierung vergeben werden", "Is profile public": "Ist das Profil öffentlich?", diff --git a/web/src/locales/en/data.json b/web/src/locales/en/data.json index f19886da..8dcea3eb 100644 --- a/web/src/locales/en/data.json +++ b/web/src/locales/en/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/es/data.json b/web/src/locales/es/data.json index f871f6ab..8d25a72c 100644 --- a/web/src/locales/es/data.json +++ b/web/src/locales/es/data.json @@ -616,6 +616,9 @@ "All": "Toda", "Edit Organization": "Editar organización", "Follow global theme": "Seguir el tema global", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Puntuación de inicio", "Init score - Tooltip": "Puntos de puntuación inicial otorgados a los usuarios al registrarse", "Is profile public": "Es el perfil público", diff --git a/web/src/locales/fa/data.json b/web/src/locales/fa/data.json index ccd05a2a..4cbf9f99 100644 --- a/web/src/locales/fa/data.json +++ b/web/src/locales/fa/data.json @@ -616,6 +616,9 @@ "All": "همه", "Edit Organization": "ویرایش سازمان", "Follow global theme": "پیروی از تم جهانی", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "امتیاز اولیه", "Init score - Tooltip": "امتیاز اولیه‌ای که به کاربران هنگام ثبت‌نام اعطا می‌شود", "Is profile public": "پروفایل عمومی است", diff --git a/web/src/locales/fi/data.json b/web/src/locales/fi/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/fi/data.json +++ b/web/src/locales/fi/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/fr/data.json b/web/src/locales/fr/data.json index 5982d117..e066338c 100644 --- a/web/src/locales/fr/data.json +++ b/web/src/locales/fr/data.json @@ -616,6 +616,9 @@ "All": "Tout", "Edit Organization": "Modifier l'organisation", "Follow global theme": "Suivre le thème global", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Score initial", "Init score - Tooltip": "Score initial attribué au compte lors de leur inscription", "Is profile public": "Est-ce que le profil est public ?", diff --git a/web/src/locales/he/data.json b/web/src/locales/he/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/he/data.json +++ b/web/src/locales/he/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/id/data.json b/web/src/locales/id/data.json index 13f64aa4..5f627ded 100644 --- a/web/src/locales/id/data.json +++ b/web/src/locales/id/data.json @@ -616,6 +616,9 @@ "All": "Semua", "Edit Organization": "Edit Organisasi", "Follow global theme": "Ikuti tema global", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Skor awal", "Init score - Tooltip": "Poin skor awal diberikan kepada pengguna saat pendaftaran", "Is profile public": "Apakah profilnya publik?", diff --git a/web/src/locales/it/data.json b/web/src/locales/it/data.json index 66f1d7f5..00b34792 100644 --- a/web/src/locales/it/data.json +++ b/web/src/locales/it/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/ja/data.json b/web/src/locales/ja/data.json index 99b2cff6..5330bc48 100644 --- a/web/src/locales/ja/data.json +++ b/web/src/locales/ja/data.json @@ -616,6 +616,9 @@ "All": "全て", "Edit Organization": "組織の編集", "Follow global theme": "グローバルテーマに従ってください", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "イニットスコア", "Init score - Tooltip": "登録時にユーザーに与えられる初期スコアポイント", "Is profile public": "プロフィールは公開されていますか?", diff --git a/web/src/locales/kk/data.json b/web/src/locales/kk/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/kk/data.json +++ b/web/src/locales/kk/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/ko/data.json b/web/src/locales/ko/data.json index 99b23168..7fd6fea3 100644 --- a/web/src/locales/ko/data.json +++ b/web/src/locales/ko/data.json @@ -616,6 +616,9 @@ "All": "모두", "Edit Organization": "단체 수정", "Follow global theme": "글로벌 테마를 따르세요", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "처음 점수", "Init score - Tooltip": "등록 시 초기 점수 부여", "Is profile public": "프로필이 공개적으로 되어 있나요?", diff --git a/web/src/locales/ms/data.json b/web/src/locales/ms/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/ms/data.json +++ b/web/src/locales/ms/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/nl/data.json b/web/src/locales/nl/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/nl/data.json +++ b/web/src/locales/nl/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/pl/data.json b/web/src/locales/pl/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/pl/data.json +++ b/web/src/locales/pl/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/pt/data.json b/web/src/locales/pt/data.json index b3715042..2f9062d0 100644 --- a/web/src/locales/pt/data.json +++ b/web/src/locales/pt/data.json @@ -616,6 +616,9 @@ "All": "Todos", "Edit Organization": "Editar Organização", "Follow global theme": "Seguir tema global", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Pontuação inicial", "Init score - Tooltip": "Pontos de pontuação inicial concedidos aos usuários no momento do registro", "Is profile public": "Perfil é público", diff --git a/web/src/locales/ru/data.json b/web/src/locales/ru/data.json index d24f3dea..ced6d0fe 100644 --- a/web/src/locales/ru/data.json +++ b/web/src/locales/ru/data.json @@ -616,6 +616,9 @@ "All": "Все", "Edit Organization": "Редактировать организацию", "Follow global theme": "Следуйте глобальной теме", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Начальный балл", "Init score - Tooltip": "Первоначальное количество баллов, присваиваемое пользователям при регистрации", "Is profile public": "Профиль является публичным?", diff --git a/web/src/locales/sk/data.json b/web/src/locales/sk/data.json index ae0d4aac..c5acf0bd 100644 --- a/web/src/locales/sk/data.json +++ b/web/src/locales/sk/data.json @@ -616,6 +616,9 @@ "All": "Všetko", "Edit Organization": "Upraviť organizáciu", "Follow global theme": "Nasledovať globálnu tému", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Počiatočné skóre", "Init score - Tooltip": "Počiatočné skóre body pridelí používateľom pri registrácii", "Is profile public": "Je profil verejný", diff --git a/web/src/locales/sv/data.json b/web/src/locales/sv/data.json index 72700900..196ab82b 100644 --- a/web/src/locales/sv/data.json +++ b/web/src/locales/sv/data.json @@ -616,6 +616,9 @@ "All": "All", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/tr/data.json b/web/src/locales/tr/data.json index e5eabbcf..26173d1b 100644 --- a/web/src/locales/tr/data.json +++ b/web/src/locales/tr/data.json @@ -616,6 +616,9 @@ "All": "Tümü", "Edit Organization": "Edit Organization", "Follow global theme": "Follow global theme", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Init score", "Init score - Tooltip": "Initial score points awarded to users upon registration", "Is profile public": "Is profile public", diff --git a/web/src/locales/uk/data.json b/web/src/locales/uk/data.json index 557ccf10..5c4f69f8 100644 --- a/web/src/locales/uk/data.json +++ b/web/src/locales/uk/data.json @@ -616,6 +616,9 @@ "All": "всі", "Edit Organization": "Редагувати організацію", "Follow global theme": "Дотримуйтеся глобальної теми", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Початкова оцінка", "Init score - Tooltip": "Початкові бали, нараховані користувачам під час реєстрації", "Is profile public": "Профіль загальнодоступний", diff --git a/web/src/locales/vi/data.json b/web/src/locales/vi/data.json index 5f94a2cf..bf209af6 100644 --- a/web/src/locales/vi/data.json +++ b/web/src/locales/vi/data.json @@ -616,6 +616,9 @@ "All": "Tất cả", "Edit Organization": "Sửa tổ chức", "Follow global theme": "Theo giao diện chung", + "Has privilege consent": "Has privilege consent", + "Has privilege consent - Tooltip": "Prevent adding users for built-in organization if HasPrivilegeConsent is false", + "Has privilege consent warning": "Adding a new user to the 'built-in' organization is currently disabled. Please note: all users in the 'built-in' organization are global administrators in Casdoor. Refer to the docs: https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself. If you still wish to create a user for the 'built-in' organization, go to the organization's settings page and enable the 'Has privilege consent' option.", "Init score": "Điểm khởi tạo", "Init score - Tooltip": "Điểm số ban đầu được trao cho người dùng khi đăng ký", "Is profile public": "Hồ sơ có công khai không?", diff --git a/web/src/locales/zh/data.json b/web/src/locales/zh/data.json index 53d60d22..087ebf5a 100644 --- a/web/src/locales/zh/data.json +++ b/web/src/locales/zh/data.json @@ -616,6 +616,9 @@ "All": "全部", "Edit Organization": "编辑组织", "Follow global theme": "使用全局默认主题", + "Has privilege consent": "特权同意", + "Has privilege consent - Tooltip": "如果为假,则禁止为built-in组织新增用户", + "Has privilege consent warning": "目前,向'built-in'组织添加新用户的功能已禁用。请注意:'built-in'组织中的所有用户均为Casdoor的全局管理员。请参阅文档:https://casdoor.org/docs/basic/core-concepts#how-does-casdoor-manage-itself。如果您仍希望为'built-in'组织创建用户,请转到该组织的设置页面并启用“特权同意”选项。", "Init score": "初始积分", "Init score - Tooltip": "用户注册后所拥有的初始积分", "Is profile public": "是否公开用户个人页",