0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00
forgejo/routers
Giteabot bfa368adbe
Fix organization field being null in GET /api/v1/teams/{id} (#24694) (#24696)
Backport #24694 by @yardenshoham

Enabled the organization loading flag.

- Fixes #20399

# Before
```json
{
  ...
  "description": "",
  "organization": null,
  "includes_all_repositories": true,
  "permission": "owner",
  ...
}
```

# After
```json
{
  ...
  "description": "",
  "organization": {
    "id": 2,
    "name": "bigorg",
    "full_name": "",
    "avatar_url": "https://3000-yardenshoham-gitea-3gfrlc9gn4h.ws-us96b.gitpod.io/avatars/e2649b0c016d9102664a7d4349503eb9",
    "description": "",
    "website": "",
    "location": "",
    "visibility": "public",
    "repo_admin_change_team_access": true,
    "username": "bigorg"
  },
  "includes_all_repositories": true,
  "permission": "owner",
  ...
}
```

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Yarden Shoham <git@yardenshoham.com>
(cherry picked from commit da1c38dd47)
2023-05-16 07:42:22 +02:00
..
api Fix organization field being null in GET /api/v1/teams/{id} (#24694) (#24696) 2023-05-16 07:42:22 +02:00
common Support sanitising the URL by removing extra slashes in the URL (#21333) (#23300) 2023-03-05 02:14:12 -05:00
install [BRANDING] Rebrand default config settings for new installs (#140) 2023-05-10 11:05:21 +02:00
private Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
utils
web fix: release page for empty or non-existing target (#24659) 2023-05-16 07:42:22 +02:00
init.go [API] Forgejo API /api/forgejo/v1 2023-05-10 09:20:14 +02:00