fix: correct Authenticate method

This commit is contained in:
Maxim Slipenko 2026-05-28 15:13:43 +03:00
parent 610f6856a2
commit bcba4b8fb4

View file

@ -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,