Skip to content

API: Get members of a team as admin #9950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 7 tasks
gerdemann opened this issue Jan 23, 2020 · 3 comments · Fixed by #10867
Closed
2 of 7 tasks

API: Get members of a team as admin #9950

gerdemann opened this issue Jan 23, 2020 · 3 comments · Fixed by #10867
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality

Comments

@gerdemann
Copy link

  • Gitea version (or commit ref): 1.11.0+rc2
  • Git version: n/a
  • Operating system: Docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist: n/a

Description

If I use /api/v1/orgs/#ORGNAME#/teams to get the teams and then take the ID of the team and then use /api/v1/teams/#ID#/members to get the members, I get a 404 error message.
I'm not member of this org/team, but i have admin privileges!

@gerdemann
Copy link
Author

A workaround would be to add yourself to the team before the query and remove yourself after the query.

@lunny lunny added type/enhancement An improvement of existing functionality modifies/api This PR adds API routes or modifies them labels Jan 26, 2020
@stale
Copy link

stale bot commented Mar 26, 2020

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale stale bot added the issue/stale label Mar 26, 2020
@gerdemann
Copy link
Author

Still valid

@stale stale bot removed the issue/stale label Mar 26, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Mar 26, 2020
zeripath added a commit to zeripath/gitea that referenced this issue Mar 28, 2020
zeripath added a commit that referenced this issue Mar 28, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented modifies/api This PR adds API routes or modifies them type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants