1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-15 05:58:16 +00:00
forgejo/routers/api
Giteabot f436cb86d4
Fix branch_protection api shows users/teams who has no readAccess () ()
Backport  by @edwardzhanged

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: 

Co-authored-by: Edward Zhang <45360012+edwardzhanged@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Co-authored-by: wenzhuo.zhang <wenzhuo.zhang@geely.com>
(cherry picked from commit d88958bb99eabc07dead6965e396755e7b6d947f)
2024-04-21 18:10:34 +02:00
..
actions Check the token's owner and repository when registering a runner () 2024-04-16 11:43:08 +02:00
forgejo/v1 Fix /api/forgejo/v1/version auth check () 2024-03-19 07:16:19 +00:00
packages feat: improve nuget nuspec api 2024-04-06 08:32:53 +00:00
shared Fix /api/forgejo/v1/version auth check () 2024-03-19 07:16:19 +00:00
v1 Fix branch_protection api shows users/teams who has no readAccess () () 2024-04-21 18:10:34 +02:00