Skip to content

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

Closed
@lchrennew

Description

@lchrennew
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    modifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions