diff options
author | 6543 <6543@obermui.de> | 2021-06-18 01:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 01:24:55 +0200 |
commit | 75205b5669c86fb1b49daa1805f0987bd5b3cbe2 (patch) | |
tree | 74d560cf981769e01b95661e0dcce6f3f2439705 /modules/structs/org.go | |
parent | 29695cd6d511823ab0d233bba8c7971e5dac3e5f (diff) | |
download | gitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.tar.gz gitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.zip |
Fix some API bugs (#16184)
* Repository object only count releases as releases (fix #16144)
* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013)
Diffstat (limited to 'modules/structs/org.go')
-rw-r--r-- | modules/structs/org.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/structs/org.go b/modules/structs/org.go index 483f5044a8..38c6c6d6d8 100644 --- a/modules/structs/org.go +++ b/modules/structs/org.go @@ -31,6 +31,8 @@ type CreateOrgOption struct { RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` } +// TODO: make EditOrgOption fields optional after https://gitea.com/go-chi/binding/pulls/5 got merged + // EditOrgOption options for editing an organization type EditOrgOption struct { FullName string `json:"full_name"` @@ -40,5 +42,5 @@ type EditOrgOption struct { // possible values are `public`, `limited` or `private` // enum: public,limited,private Visibility string `json:"visibility" binding:"In(,public,limited,private)"` - RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` + RepoAdminChangeTeamAccess *bool `json:"repo_admin_change_team_access"` } |