Remove UserGet call in tests since it's note required for anon sessions
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
This commit is contained in:
@@ -64,7 +64,6 @@ func (p *pwd) SessionNew(ctx context.Context, config types.SessionConfig) (*type
|
||||
// Annonymous users should be also allowed to login
|
||||
if config.UserId != "" {
|
||||
if _, err := p.UserGet(config.UserId); errors.Is(err, userBannedError) {
|
||||
|
||||
return nil, &AccessDeniedError{err}
|
||||
} else if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user