0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-28 09:19:26 -05:00
forgejo/services/convert
Giteabot f436cb86d4
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>
(cherry picked from commit d88958bb99eabc07dead6965e396755e7b6d947f)
2024-04-21 18:10:34 +02:00
..
activity.go
attachment.go
convert.go Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-21 18:10:34 +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) (#30343) 2024-04-15 16:21:45 +02:00
issue_comment.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +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) (#30343) 2024-04-15 16:21:45 +02:00
pull_review.go [GITEA] POST /repos/{owner}/{repo}/pulls/{index}/reviews/{id}/comments 2024-02-05 16:09:42 +01:00
pull_test.go [GITEA] Fix NPE in ToPullReviewList 2024-02-05 16:09:42 +01:00
release.go
release_test.go
repository.go Add merge style fast-forward-only (#28954) 2024-02-14 17:19:19 +01:00
secret.go
status.go
user.go [v7.0/forgejo] Add optional pronoun field in user settings (#3076) 2024-04-06 13:23:43 +00:00
user_test.go
utils.go [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00
utils_test.go [BRANDING] add Forgejo Git Service and migration UI 2024-02-05 16:05:02 +01:00
wiki.go Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00