fix(team): show public teams to non-members

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-18 17:16:19 +02:00
1 parent 51c436ef11
commit 064dbc1cbd
2 files changed
+14 -2

No files matched your search

+6
View File
@@ -198,6 +198,12 @@ func IsNotFound(err error) bool {
return ok && failure.Status == http.StatusNotFound
}
// IsForbidden reports whether err is a 403 response.
func IsForbidden(err error) bool {
failure, ok := errors.AsType[*transport.APIError](err)
return ok && failure.Status == http.StatusForbidden
}
// refusal returns the conflict reason of a refused request, or "".
func refusal(apiErr *transport.APIError) string {
if apiErr.Status == http.StatusLocked {