1
0
forked from baron/baron-sso

fix: resolve i18n synchronization and fix backend tests

- Added missing i18n keys for integrity and tenant profile pages to root and adminfront locales.
- Corrected i18n section structure in template.toml.
- Fixed Hanmac email policy test by improving tenant hierarchy mocking and ensuring correct CompanyCode propagation.
- Resolved various backend test failures by updating expectations for normalized roles and fixing undefined variables.
This commit is contained in:
2026-06-02 18:50:26 +09:00
parent ae8c2ee06f
commit bf64f82507
7 changed files with 69 additions and 10 deletions

View File

@@ -1020,6 +1020,7 @@ func (h *UserHandler) BulkCreateUsers(c *fiber.Ctx) error {
ID string
Slug string
Name string
ParentID *string
Schema []any
Groups []domain.UserGroup
LoginIDField string
@@ -1030,9 +1031,10 @@ func (h *UserHandler) BulkCreateUsers(c *fiber.Ctx) error {
buildTenantCacheItem := func(tenant *domain.Tenant) tenantCacheItem {
tItem := tenantCacheItem{
ID: tenant.ID,
Slug: tenant.Slug,
Name: tenant.Name,
ID: tenant.ID,
Slug: tenant.Slug,
Name: tenant.Name,
ParentID: tenant.ParentID,
}
if s, ok := tenant.Config["userSchema"].([]any); ok {
tItem.Schema = s