fix: allow users to update their locale even when own account update disabled

This commit is contained in:
Elias Schneider
2025-06-02 11:35:13 +02:00
parent 00259f8819
commit 6c00aaa3ef
3 changed files with 3 additions and 15 deletions

View File

@@ -163,13 +163,6 @@ func (e *DuplicateClaimError) Error() string {
}
func (e *DuplicateClaimError) HttpStatusCode() int { return http.StatusBadRequest }
type AccountEditNotAllowedError struct{}
func (e *AccountEditNotAllowedError) Error() string {
return "You are not allowed to edit your account"
}
func (e *AccountEditNotAllowedError) HttpStatusCode() int { return http.StatusForbidden }
type OidcInvalidCodeVerifierError struct{}
func (e *OidcInvalidCodeVerifierError) Error() string {