Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18f4015

Browse files
committed
fix boolean return
1 parent e0b8af3 commit 18f4015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/organizationparam.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func ExtractOrganizationMember(ctx context.Context, auth func(r *http.Request, a
195195
}
196196

197197
if auth != nil && auth(r, policy.ActionRead, user) {
198-
return &user, organizationMembers, true
198+
return &user, organizationMembers, false
199199
}
200200

201201
// If the user cannot be read and 0 memberships exist, throw a 404 to not

0 commit comments

Comments
 (0)