From f76b6261a8e76faab7233dcc9d28a0ac2f3d434a Mon Sep 17 00:00:00 2001 From: rot1024 Date: Sat, 28 Oct 2023 13:27:55 +0900 Subject: [PATCH] fix(server): fix operator.Workspaces --- account/accountusecase/operator.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account/accountusecase/operator.go b/account/accountusecase/operator.go index 5b28d52..4881c79 100644 --- a/account/accountusecase/operator.go +++ b/account/accountusecase/operator.go @@ -25,6 +25,9 @@ func (o *Operator) Workspaces(r workspace.Role) accountdomain.WorkspaceIDList { if r == workspace.RoleWriter { return o.WritableWorkspaces } + if r == workspace.RoleMaintainer { + return o.MaintainableWorkspaces + } if r == workspace.RoleOwner { return o.OwningWorkspaces }