forgejo/routers/api
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
..
actions Check the token's owner and repository when registering a runner (#30406) 2024-04-16 09:38:26 +02:00
forgejo/v1
packages feat: improve nuget nuspec api 2024-04-05 23:39:45 +02:00
shared
v1 Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-21 16:28:16 +02:00