diff --git a/frontend/src/lib/i18n/locales/en.json b/frontend/src/lib/i18n/locales/en.json
index 8a96a7c..2d2ca03 100644
--- a/frontend/src/lib/i18n/locales/en.json
+++ b/frontend/src/lib/i18n/locales/en.json
@@ -40,7 +40,7 @@
"totpSuccessSubtitle": "Redirecting to your app",
"totpTitle": "Enter your TOTP code",
"unauthorizedTitle": "Unauthorized",
- "unauthorizedResourceSubtitle": "The user with username {{username}} is not authorized to access the resource {{resource}}.",
- "unaothorizedLoginSubtitle": "The user with username {{username}} is not authorized to login.",
+ "unauthorizedResourceSubtitle": "The user with username {{username}} is not authorized to access the resource {{resource}}.",
+ "unaothorizedLoginSubtitle": "The user with username {{username}} is not authorized to login.",
"unauthorizedButton": "Try again"
}
\ No newline at end of file
diff --git a/frontend/src/pages/unauthorized-page.tsx b/frontend/src/pages/unauthorized-page.tsx
index 4e0ddde..fe6f693 100644
--- a/frontend/src/pages/unauthorized-page.tsx
+++ b/frontend/src/pages/unauthorized-page.tsx
@@ -37,6 +37,7 @@ export const UnauthorizedPage = () => {
}}
values={{ username }}
/>
diff --git a/internal/auth/auth.go b/internal/auth/auth.go
index 5857c78..6c1e629 100644
--- a/internal/auth/auth.go
+++ b/internal/auth/auth.go
@@ -295,6 +295,9 @@ func (auth *Auth) ResourceAllowed(c *gin.Context, context types.UserContext) (bo
// Check if user is allowed
if len(labels.Users) != 0 {
log.Debug().Msg("Checking users")
+ if len(labels.Users) == 0 {
+ return true, nil
+ }
if slices.Contains(labels.Users, context.Username) {
return true, nil
}