From 3b6f977fa54fbff807e6a49f1087a0bf5f1edb6c Mon Sep 17 00:00:00 2001
From: Alena Petraki <alena.petraki@gmail.com>
Date: Wed, 31 May 2023 13:40:57 +0300
Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?=
 =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0,=20?=
 =?UTF-8?q?=D0=B8=D0=B7-=D0=B7=D0=B0=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80?=
 =?UTF-8?q?=D0=BE=D0=B9=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?=
 =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BF=D1=80=D0=B8=D0=BD=D0=B0=D0=B4=D0=BB?=
 =?UTF-8?q?=D0=B5=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20=D0=BF=D1=80=D0=B8?=
 =?UTF-8?q?=D0=BD=D1=86=D0=B8=D0=BF=D0=B0=D0=BB=D0=B0=20=D0=BA=20=D1=80?=
 =?UTF-8?q?=D0=B0=D0=B7=D0=BD=D1=8B=D0=BC=20=D0=BE=D1=80=D0=B3=D0=B0=D0=BD?=
 =?UTF-8?q?=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D1=8F=D0=BC=20=D0=BE=D1=82=D1=80?=
 =?UTF-8?q?=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=BB=D0=B0=20=D0=BD?=
 =?UTF-8?q?=D0=B5=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pkg/auth/user.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pkg/auth/user.go b/pkg/auth/user.go
index a4500c14..00c817e2 100644
--- a/pkg/auth/user.go
+++ b/pkg/auth/user.go
@@ -42,6 +42,7 @@ func (u UserPrincipal) Format(f fmt.State, verb rune) {
 func (u *UserPrincipal) Space(spaceID string) SpaceAccessor {
 	u.spaceID = spaceID
 	u.orgID = ""
+	u.hasMemberRole = false
 	return u
 }
 
@@ -55,6 +56,8 @@ func (u *UserPrincipal) getSpace(ctx context.Context, spaceID string) *spaces.Sp
 
 func (u UserPrincipal) Organization(orgID string) OrganizationAccessor {
 	u.orgID = orgID
+	u.spaceID = ""
+	u.hasMemberRole = false
 	return &u
 }
 
-- 
GitLab