Skip to content

GET /api/v1/user/teams returns null #20829

@Oliver-Hanikel

Description

@Oliver-Hanikel

Description

My user (20) is in an organization (publicorg) and in this organization in a team (Frontend). I would expect /api/v1/user/teams to return the team as described in the swagger, but instead it just returns null. It doesn't matter whether the user is a public member or not. Using this endpoint would simplify this pull request a bit.

Gitea Version

1.17.0 built with GNU Make 4.3, go1.18.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/Oliver-Hanikel/a279a0057dab0880a866b3180dd55ff2

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

I am using the official 1.17.0 docker image from docker hub.

Database

SQLite

Activity

added a commit that references this issue on Aug 18, 2022
e8b5972
added a commit that references this issue on Aug 20, 2022
e7a5f26
added 2 commits that reference this issue on Aug 21, 2022
0b4c166
e6ec411
added a commit that references this issue on Aug 28, 2022
757e987
locked and limited conversation to collaborators on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Oliver-Hanikel

      Issue actions

        GET /api/v1/user/teams returns null · Issue #20829 · go-gitea/gitea