From bcba4b8fb4ec2595aa200a87618203f3c30664ef Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Thu, 28 May 2026 15:13:43 +0300 Subject: [PATCH] fix: correct Authenticate method --- services/auth/source/db/authenticate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/auth/source/db/authenticate.go b/services/auth/source/db/authenticate.go index b1d8eae6ae..e06b9aaa50 100644 --- a/services/auth/source/db/authenticate.go +++ b/services/auth/source/db/authenticate.go @@ -76,7 +76,7 @@ func Authenticate(ctx context.Context, user *user_model.User, login, password st } // attempting to login as a non-user account - if user.Type != user_model.UserTypeIndividual { + if !user.IsUser() { return nil, user_model.ErrUserProhibitLogin{ UID: user.ID, Name: user.Name,