Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.
TypeScript cloud-alternativecollaborationcollaborative-editingdropboxfile-serverfile-sharingfile-storagefile-syncfull-text-searchhomelabnextcloudon-premiseopen-sourceprivacy-firstprivate-cloudrealtimesecureself-hostedstorage-serverwebdav
chore(i18n): replace Not authorized with Unauthorized
johaven0429e1372716
diff --git a/backend/src/applications/shares/services/shares-manager.service.spec.ts b/backend/src/applications/shares/services/shares-manager.service.spec.tsindex 517aee88..b1b6450a 100644--- a/backend/src/applications/shares/services/shares-manager.service.spec.ts+++ b/backend/src/applications/shares/services/shares-manager.service.spec.ts@@ -182,7 +182,7 @@ describe(SharesManager.name, () => {it('throws Forbidden when share is not found or not authorized', async () => {sharesQueriesMock.getShareWithMembers.mockResolvedValueOnce(null)- await expect(service.getShareWithMembers(user, 99, false)).rejects.toEqual(new HttpException('Not authorized', HttpStatus.FORBIDDEN))+ await expect(service.getShareWithMembers(user, 99, false)).rejects.toEqual(new HttpException('Unauthorized', HttpStatus.FORBIDDEN))})})@@ -217,7 +217,7 @@ describe(SharesManager.name, () => {it('throws Forbidden when link is not found', async () => {sharesQueriesMock.listShareLinks.mockResolvedValueOnce(null)- await expect(service.getShareLink(user, 123)).rejects.toEqual(new HttpException('Not authorized', HttpStatus.FORBIDDEN))+ await expect(service.getShareLink(user, 123)).rejects.toEqual(new HttpException('Unauthorized', HttpStatus.FORBIDDEN))})})@@ -468,7 +468,7 @@ describe(SharesManager.name, () => {sharesQueriesMock.shareExistsForOwner.mockResolvedValueOnce(false)await expect(service.deleteShare({ id: 2, isAdmin: false } as any, 123)).rejects.toEqual(- new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ new HttpException('Unauthorized', HttpStatus.FORBIDDEN))})@@ -516,7 +516,7 @@ describe(SharesManager.name, () => {it('throws Forbidden when not allowed to manage child share', async () => {sharesQueriesMock.childExistsForShareOwner.mockResolvedValueOnce(null)- await expect(service.getChildShare(user, 1, 2, false)).rejects.toEqual(new HttpException('Not authorized', HttpStatus.FORBIDDEN))+ await expect(service.getChildShare(user, 1, 2, false)).rejects.toEqual(new HttpException('Unauthorized', HttpStatus.FORBIDDEN))})})diff --git a/backend/src/applications/shares/services/shares-manager.service.ts b/backend/src/applications/shares/services/shares-manager.service.tsindex 11b2e79d..53b2ee64 100644--- a/backend/src/applications/shares/services/shares-manager.service.ts+++ b/backend/src/applications/shares/services/shares-manager.service.ts@@ -119,7 +119,7 @@ export class SharesManager {// asAdmin: true if the user is the owner of the parent share or if the share is requested from the administrationconst share: ShareProps = await this.sharesQueries.getShareWithMembers(user, shareId, asAdmin)if (!share) {- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}await this.setAllowedPermissions(user, share, asAdmin)return share@@ -140,7 +140,7 @@ export class SharesManager {if (share.externalPath) {/* EXTERNAL PATH CASE */if (!user.isAdmin) {- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}try {await checkExternalPath(share.externalPath)@@ -271,7 +271,7 @@ export class SharesManager {async deleteShare(user: UserModel, shareId: number, asAdmin = false): Promise<void> {// asAdmin : true if the user is the owner of the parent share or if the share is requested from an adminif (!asAdmin && !user.isAdmin && !(await this.sharesQueries.shareExistsForOwner(user.id, shareId))) {- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}try {await this.deleteAllLinkMembers(shareId, LINK_TYPE.SHARE)@@ -545,7 +545,7 @@ export class SharesManager {async getShareLink(user: UserModel, shareId: number, asAdmin: boolean = false): Promise<ShareLink> {const shareLink: ShareLink = await this.sharesQueries.listShareLinks(user, shareId, asAdmin)if (!shareLink) {- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}await this.setAllowedPermissions(user, shareLink, asAdmin)if (shareLink.file?.permissions) {@@ -1051,7 +1051,7 @@ export class SharesManager {tag: this.checkChildSharePermissions.name,msg: `is not allowed to manage child share (${childId}) from share (${shareId})`})- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}return true}diff --git a/backend/src/applications/spaces/services/spaces-manager.service.spec.ts b/backend/src/applications/spaces/services/spaces-manager.service.spec.tsindex 8cc49826..daa6622a 100644--- a/backend/src/applications/spaces/services/spaces-manager.service.spec.ts+++ b/backend/src/applications/spaces/services/spaces-manager.service.spec.ts@@ -220,6 +220,6 @@ describe(SpacesManager.name, () => {it('should throw Forbidden when user is neither admin nor manager for space shares', async () => {vi.spyOn(spacesQueries, 'userIsAdminOrSpaceManager').mockResolvedValueOnce(false)- await expect(spacesManager.listSpaceShares(userTest, 10)).rejects.toEqual(new HttpException('Not authorized', HttpStatus.FORBIDDEN))+ await expect(spacesManager.listSpaceShares(userTest, 10)).rejects.toEqual(new HttpException('Unauthorized', HttpStatus.FORBIDDEN))})})diff --git a/backend/src/applications/spaces/services/spaces-manager.service.ts b/backend/src/applications/spaces/services/spaces-manager.service.tsindex 25644938..f6cc9680 100644--- a/backend/src/applications/spaces/services/spaces-manager.service.ts+++ b/backend/src/applications/spaces/services/spaces-manager.service.ts@@ -744,7 +744,7 @@ export class SpacesManager {const space: SpaceProps = await this.spacesQueries.getSpaceAsAdminOrManager(user, spaceId)if (!space) {this.logger.warn({ tag: this.userCanAccessSpace.name, msg: `space (${spaceId}) not found or not authorized for user (${user.id})` })- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}return space} else {@@ -762,7 +762,7 @@ export class SpacesManager {return true}this.logger.warn({ tag: this.userIsAdminOrSpaceManager.name, msg: `space (${spaceId}) not found or not authorized for user (${user.id})` })- throw new HttpException('Not authorized', HttpStatus.FORBIDDEN)+ throw new HttpException('Unauthorized', HttpStatus.FORBIDDEN)}private async onSpaceActionForMembers(diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.jsonindex e66ff122..d685b3fe 100644--- a/frontend/src/i18n/de.json+++ b/frontend/src/i18n/de.json@@ -4,7 +4,7 @@"Authentication service error": "Fehler des Authentifizierungsdienstes","Account locked": "Konto gesperrt","Account is not allowed": "Konto ist nicht zugelassen",- "Not authorized": "Nicht autorisiert",+ "Unauthorized": "Nicht autorisierter Zugriff","Account matching error": "Fehler bei der Kontozuordnung","Authentication": "Authentifizierung","Sign in": "Anmelden",diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.jsonindex e4b6a230..82b12faa 100644--- a/frontend/src/i18n/es.json+++ b/frontend/src/i18n/es.json@@ -4,7 +4,7 @@"Authentication service error": "Error del servicio de autenticación","Account locked": "Cuenta bloqueada","Account is not allowed": "Cuenta no autorizada",- "Not authorized": "No autorizado",+ "Unauthorized": "Acceso no autorizado","Account matching error": "Error de correspondencia de cuenta","Authentication": "Autenticación","Sign in": "Iniciar sesión",diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.jsonindex 747e55f3..04d1e1fd 100644--- a/frontend/src/i18n/fr.json+++ b/frontend/src/i18n/fr.json@@ -4,7 +4,7 @@"Authentication service error": "Erreur du service d’authentification","Account locked": "Compte verrouillé","Account is not allowed": "Compte non autorisé",- "Not authorized": "Non autorisé",+ "Unauthorized": "Accès non autorisé","Account matching error": "Erreur de correspondance de compte","Authentication": "Authentification","Sign in": "Se connecter",diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.jsonindex 968fe71c..598b4dd7 100644--- a/frontend/src/i18n/hi.json+++ b/frontend/src/i18n/hi.json@@ -4,7 +4,7 @@"Authentication service error": "प्रमाणीकरण सेवा त्रुटि","Account locked": "खाता लॉक है","Account is not allowed": "खाते की अनुमति नहीं है",- "Not authorized": "अनधिकृत",+ "Unauthorized": "अनधिकृत पहुँच","Account matching error": "खाते के मिलान में त्रुटि","Authentication": "प्रमाणीकरण","Sign in": "साइन इन",diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.jsonindex 9ef045e6..30315397 100644--- a/frontend/src/i18n/it.json+++ b/frontend/src/i18n/it.json@@ -4,7 +4,7 @@"Authentication service error": "Errore del servizio di autenticazione","Account locked": "Account bloccato","Account is not allowed": "Account non autorizzato",- "Not authorized": "Non autorizzato",+ "Unauthorized": "Accesso non autorizzato","Account matching error": "Errore di corrispondenza dell’account","Authentication": "Autenticazione","Sign in": "Accedi",diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.jsonindex 3636a6c4..e98c95c5 100644--- a/frontend/src/i18n/ja.json+++ b/frontend/src/i18n/ja.json@@ -4,7 +4,7 @@"Authentication service error": "認証サービスエラー","Account locked": "アカウントがロックされています","Account is not allowed": "アカウントは許可されていません",- "Not authorized": "許可されていません",+ "Unauthorized": "権限のないアクセス","Account matching error": "アカウント照合エラー","Authentication": "認証","Sign in": "サインイン",diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.jsonindex 9500f96b..1a84f553 100644--- a/frontend/src/i18n/ko.json+++ b/frontend/src/i18n/ko.json@@ -4,7 +4,7 @@"Authentication service error": "인증 서비스 오류","Account locked": "계정이 잠겼습니다","Account is not allowed": "계정이 허용되지 않습니다",- "Not authorized": "권한이 없습니다",+ "Unauthorized": "무단 접근","Account matching error": "계정 매칭 오류","Authentication": "인증","Sign in": "로그인",diff --git a/frontend/src/i18n/nl.json b/frontend/src/i18n/nl.jsonindex 8cf5f817..d89f068f 100644--- a/frontend/src/i18n/nl.json+++ b/frontend/src/i18n/nl.json@@ -4,7 +4,7 @@"Authentication service error": "Fout bij de authenticatie","Account locked": "Account vergrendeld","Account is not allowed": "Account is niet toegestaan",- "Not authorized": "Niet geautoriseerd",+ "Unauthorized": "Ongeautoriseerde toegang","Account matching error": "Geen overeenkomstig account","Authentication": "Authenticatie","Sign in": "Aanmelden",diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.jsonindex d0c002ae..121ab938 100644--- a/frontend/src/i18n/pl.json+++ b/frontend/src/i18n/pl.json@@ -4,7 +4,7 @@"Authentication service error": "Błąd usługi uwierzytelniania","Account locked": "Konto zablokowane","Account is not allowed": "Konto nie jest uprawnione",- "Not authorized": "Nieautoryzowany",+ "Unauthorized": "Nieautoryzowany dostęp","Account matching error": "Błąd dopasowania konta","Authentication": "Uwierzytelnianie","Sign in": "Zaloguj się",diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.jsonindex 56355eb2..ea1857f8 100644--- a/frontend/src/i18n/pt-BR.json+++ b/frontend/src/i18n/pt-BR.json@@ -4,7 +4,7 @@"Authentication service error": "Erro no serviço de autenticação","Account locked": "Conta bloqueada","Account is not allowed": "Conta não permitida",- "Not authorized": "Não autorizado",+ "Unauthorized": "Acesso não autorizado","Account matching error": "Erro de correspondência de conta","Authentication": "Autenticação","Sign in": "Entrar",diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.jsonindex a6079ec2..c7d56517 100644--- a/frontend/src/i18n/pt.json+++ b/frontend/src/i18n/pt.json@@ -4,7 +4,7 @@"Authentication service error": "Erro do serviço de autenticação","Account locked": "Conta bloqueada","Account is not allowed": "Conta não autorizada",- "Not authorized": "Não autorizado",+ "Unauthorized": "Acesso não autorizado","Account matching error": "Erro de correspondência de conta","Authentication": "Autenticação","Sign in": "Entrar",diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.jsonindex 2c9ad6ed..d73e042b 100644--- a/frontend/src/i18n/ru.json+++ b/frontend/src/i18n/ru.json@@ -4,7 +4,7 @@"Authentication service error": "Ошибка службы аутентификации","Account locked": "Аккаунт заблокирован","Account is not allowed": "Аккаунт не разрешён",- "Not authorized": "Не авторизован",+ "Unauthorized": "Несанкционированный доступ","Account matching error": "Ошибка сопоставления аккаунта","Authentication": "Аутентификация","Sign in": "Войти",diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.jsonindex f4b473e5..6648e712 100644--- a/frontend/src/i18n/tr.json+++ b/frontend/src/i18n/tr.json@@ -4,7 +4,7 @@"Authentication service error": "Kimlik doğrulama hizmeti hatası","Account locked": "Hesap kilitlendi","Account is not allowed": "Hesaba izin verilmiyor",- "Not authorized": "Yetkisiz",+ "Unauthorized": "Yetkisiz erişim","Account matching error": "Hesap eşleştirme hatası","Authentication": "Kimlik doğrulama","Sign in": "Giriş yap",diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.jsonindex 999bb152..0e4417ab 100644--- a/frontend/src/i18n/zh.json+++ b/frontend/src/i18n/zh.json@@ -4,7 +4,7 @@"Authentication service error": "认证服务错误","Account locked": "账户已锁定","Account is not allowed": "账户未被允许",- "Not authorized": "未授权",+ "Unauthorized": "未授权访问","Account matching error": "账户匹配错误","Authentication": "身份验证","Sign in": "登录",