1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/services/convert
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
..
activity.go
attachment.go
convert.go Fix branch_protection api shows users/teams who has no readAccess () () 2024-04-17 13:50:49 +00:00
git_commit_test.go
git_commit.go
issue_comment.go Fix missed doer () () 2024-04-09 02:42:45 +03:00
issue_test.go
issue.go Fix missed doer () () 2024-04-09 02:42:45 +03:00
main_test.go
mirror.go
notification.go Performance improvements for pull request list page () 2024-03-21 14:13:08 +01:00
package.go
pull_review_test.go Fix possible NPE in ToPullReviewList () 2024-03-13 19:46:15 +00:00
pull_review.go Fix possible NPE in ToPullReviewList () 2024-03-13 19:46:15 +00:00
pull_test.go
pull.go Fix missed doer () () 2024-04-09 02:42:45 +03:00
release_test.go
release.go
repository.go
secret.go
status.go
user_test.go
user.go
utils_test.go
utils.go
wiki.go