forgejo/routers/api/v1
Edward Zhang b3a6596b54
Fix branch_protection api shows users/teams who has no readAccess (#30291)
Add some logic in `convert.ToBranchProtection` to return only the names
associated with readAccess instead of returning all names. This will
ensure consistency in behavior between the frontend and backend.
Fixes: #27694

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wenzhuo.zhang <wenzhuo.zhang@geely.com>
Co-authored-by: Giteabot <teabot@gitea.io>
(cherry picked from commit 02e183bf3fa502b7cef76e8dcdbf01b85ce641f0)
2024-04-21 16:28:16 +02:00
..
activitypub
admin Fix empty field login_name in API response JSON when creating user (#30511) 2024-04-21 11:59:16 +02:00
misc
notify
org
packages
repo Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-21 16:28:16 +02:00
settings
shared
swagger feat(api): implement branch/commit comparison API (#30349) 2024-04-21 11:58:18 +02:00
user
utils
api.go feat(api): implement branch/commit comparison API (#30349) 2024-04-21 11:58:18 +02:00