1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 22:54:24 +00:00
gitea/routers/api
Giteabot d88958bb99
Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544)
Backport #30291 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: #27694

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>
2024-04-17 13:50:49 +00:00
..
actions Check the token's owner and repository when registering a runner (#30406) (#30411) 2024-04-11 10:57:34 +02:00
packages Relax generic package filename restrictions (#30135) 2024-03-27 16:55:05 +00:00
v1 Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-17 13:50:49 +00:00