From 3e98cc74b5465e78c897c4f84e1861463c6311ab Mon Sep 17 00:00:00 2001 From: Fabi <38692350+fgerschwiler@users.noreply.github.com> Date: Tue, 6 Apr 2021 16:17:56 +0200 Subject: [PATCH] fix: check org id missing (#1533) --- internal/command/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/command/user.go b/internal/command/user.go index 4a85df671..7c789e631 100644 --- a/internal/command/user.go +++ b/internal/command/user.go @@ -209,7 +209,7 @@ func (c *Commands) RemoveUser(ctx context.Context, userID, resourceOwner string, } func (c *Commands) AddUserToken(ctx context.Context, orgID, agentID, clientID, userID string, audience, scopes []string, lifetime time.Duration) (*domain.Token, error) { - if orgID == "" || userID == "" { + if userID == "" { return nil, caos_errs.ThrowInvalidArgument(nil, "COMMAND-55n8M", "Errors.IDMissing") }