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:
Marcos Lilljedahl
2020-10-03 10:01:44 -03:00
parent 58a3432a4e
commit 7fadf5bad7
4 changed files with 0 additions and 8 deletions

View File

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