forgejo/services/convert
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
..
activity.go
attachment.go
convert.go Fix branch_protection api shows users/teams who has no readAccess (#30291) 2024-04-21 16:28:16 +02:00
git_commit.go Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
git_commit_test.go
issue.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_comment.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
issue_test.go
main_test.go
mirror.go
notification.go Performance improvements for pull request list page (#29900) 2024-03-26 19:04:26 +01:00
package.go Fix incorrect relative/absolute URL usages (#29531) 2024-03-06 12:10:46 +08:00
pull.go Fix missed doer (#30231) 2024-04-15 20:01:35 +02:00
pull_review.go
pull_test.go
release.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
release_test.go
repository.go Allow changing global wiki editability via the API 2024-04-16 22:51:36 +02:00
secret.go
status.go
user.go Update API to return 'source_id' for users (#29718) 2024-04-21 12:04:18 +02:00
user_test.go
utils.go
utils_test.go
wiki.go Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00