1
0
mirror of https://github.com/go-gitea/gitea synced 2025-02-24 05:41:38 +01:00
Giteabot d88958bb99
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>
2024-04-17 13:50:49 +00:00
..