File tree 3 files changed +12
-5
lines changed
3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -191,9 +191,16 @@ func (api *API) getWorkspaceOwnerData(
191
191
}
192
192
ownerRoles = make ([]previewtypes.WorkspaceOwnerRBACRole , 0 , len (roles ))
193
193
for _ , it := range roles {
194
+ if it .OrganizationID != uuid .Nil && it .OrganizationID != organizationID {
195
+ continue
196
+ }
197
+ var orgID string
198
+ if it .OrganizationID != uuid .Nil {
199
+ orgID = it .OrganizationID .String ()
200
+ }
194
201
ownerRoles = append (ownerRoles , previewtypes.WorkspaceOwnerRBACRole {
195
202
Name : it .Name ,
196
- OrgID : it . OrganizationID ,
203
+ OrgID : orgID ,
197
204
})
198
205
}
199
206
return nil
@@ -231,7 +238,7 @@ func (api *API) getWorkspaceOwnerData(
231
238
}
232
239
233
240
return previewtypes.WorkspaceOwner {
234
- ID : user .ID ,
241
+ ID : user .ID . String () ,
235
242
Name : user .Username ,
236
243
FullName : user .Name ,
237
244
Email : user .Email ,
Original file line number Diff line number Diff line change @@ -488,7 +488,7 @@ require (
488
488
)
489
489
490
490
require (
491
- github.com/coder/preview v0.0.0-20250415184318-1998a47f687e
491
+ github.com/coder/preview v0.0.0-20250417203026-7edcb9e02d99
492
492
github.com/kylecarbs/aisdk-go v0.0.5
493
493
github.com/mark3labs/mcp-go v0.20.1
494
494
)
Original file line number Diff line number Diff line change @@ -907,8 +907,8 @@ github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 h1:3jzYUlGH7ZELIH4XggX
907
907
github.com/coder/pq v1.10.5-0.20240813183442-0c420cb5a048 /go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o =
908
908
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 h1:3A0ES21Ke+FxEM8CXx9n47SZOKOpgSE1bbJzlE4qPVs =
909
909
github.com/coder/pretty v0.0.0-20230908205945-e89ba86370e0 /go.mod h1:5UuS2Ts+nTToAMeOjNlnHFkPahrtDkmpydBen/3wgZc =
910
- github.com/coder/preview v0.0.0-20250415184318-1998a47f687e h1:qFeANfX24rGoGJwGqirYKD1QNp4EOWz2GpI81zdOjRY =
911
- github.com/coder/preview v0.0.0-20250415184318-1998a47f687e /go.mod h1:HqHMj1omTQfg4Kg5mjvHgKrraFnww6S7MN2+4d6MDyg =
910
+ github.com/coder/preview v0.0.0-20250417203026-7edcb9e02d99 h1:ek8akG49hG304Dsj6T+k8qd4t4rEjUyJ97EiQ9xqkYA =
911
+ github.com/coder/preview v0.0.0-20250417203026-7edcb9e02d99 /go.mod h1:nyq3UKfaBu4jmA6ddJH05kD5K6paHEMLpRmwLdYJctU =
912
912
github.com/coder/quartz v0.1.2 h1:PVhc9sJimTdKd3VbygXtS4826EOCpB1fXoRlLnCrE+s =
913
913
github.com/coder/quartz v0.1.2 /go.mod h1:vsiCc+AHViMKH2CQpGIpFgdHIEQsxwm8yCscqKmzbRA =
914
914
github.com/coder/retry v1.5.1 h1:iWu8YnD8YqHs3XwqrqsjoBTAVqT9ml6z9ViJ2wlMiqc =
You can’t perform that action at this time.
0 commit comments