Skip to content
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

repo_admin_change_team_access always changes to false after update org via api #16013

Closed
1 of 4 tasks
lchrennew opened this issue May 29, 2021 · 1 comment · Fixed by #16184
Closed
1 of 4 tasks

repo_admin_change_team_access always changes to false after update org via api #16013

lchrennew opened this issue May 29, 2021 · 1 comment · Fixed by #16184
Labels
modifies/api This PR adds API routes or modifies them type/bug

Comments

@lchrennew
Copy link

lchrennew commented May 29, 2021

  • Gitea version (or commit ref): 1.14.2 on Docker

  • Git version: 2.23.0

  • Operating system: Mac OSX 11.3

  • Database (use [x]):

    • MySQL
    • PostgreSQL
    • MSSQL
    • SQLite

Description

Request:

PATCH /repos/{owner}

{"id":19,"username":"solution1","full_name":"Solution1","avatar_url":"http://localhost:3000/user/avatar/solution1/-1","description":"","website":"","location":"","visibility":"private","repo_admin_change_team_access":true,"teams":1,"members":1,"modules":2}

Actual Response:

{"id":19,"username":"solution1","full_name":"Solution1","avatar_url":"http://localhost:3000/user/avatar/solution1/-1","description":"","website":"","location":"","visibility":"private","repo_admin_change_team_access":false}

Expected Response

{...,"repo_admin_change_team_access":true...}

Screenshots

@lchrennew lchrennew changed the title repo_admin_change_team_access always changes to false after update repo via api repo_admin_change_team_access always changes to false after update org via api May 29, 2021
@lunny lunny added modifies/api This PR adds API routes or modifies them type/bug labels Jun 5, 2021
@6543
Copy link
Member

6543 commented Jun 17, 2021

@lchrennew I think you refer to PATCH /orgs/{org}

6543 added a commit to 6543-forks/gitea that referenced this issue Jun 17, 2021
6543 added a commit that referenced this issue Jun 17, 2021
* Repository object only count releases as releases (fix #16144)

* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013)
6543 added a commit to 6543-forks/gitea that referenced this issue Jun 17, 2021
* Repository object only count releases as releases (fix go-gitea#16144)

* EditOrg respect RepoAdminChangeTeamAccess option (fix go-gitea#16013)
lunny pushed a commit that referenced this issue Jun 18, 2021
* Fix some API bugs (#16184)

* Repository object only count releases as releases (fix #16144)

* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013)

* adjut to v1.14
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this issue Aug 10, 2021
* Repository object only count releases as releases (fix go-gitea#16144)

* EditOrg respect RepoAdminChangeTeamAccess option (fix go-gitea#16013)
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modifies/api This PR adds API routes or modifies them type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants