0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-22 13:57:46 -05:00
forgejo/routers/api/v1/repo
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
..
action.go
avatar.go
blob.go
branch.go Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-21 18:10:34 +02:00
collaborators.go
commits.go
file.go Remove repetitive words (#30091) 2024-03-30 07:17:30 +01:00
flags.go
fork.go
git_hook.go
git_ref.go
hook.go
hook_test.go
issue.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_attachment.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_comment.go
issue_comment_attachment.go
issue_dependency.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_label.go
issue_pin.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
issue_reaction.go
issue_stopwatch.go
issue_subscription.go
issue_tracked_time.go Fix missed doer (#30231) (#30343) 2024-04-15 16:21:45 +02:00
key.go
label.go
language.go
main_test.go
migrate.go
milestone.go
mirror.go
notes.go
patch.go
pull.go Refactor StringsToInt64s (#29967) 2024-03-26 19:04:26 +01:00
pull_review.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-30 07:17:32 +01:00
release.go Fix release published actions not triggering for releases created from existing tags 2024-04-16 18:28:53 +00:00
release_attachment.go
release_tags.go
repo.go Remove scheduled action tasks if the repo is archived (#30224) (#30230) 2024-04-08 11:41:39 +02:00
repo_test.go
runners.go
star.go
status.go
subscriber.go
tag.go
teams.go
topic.go
transfer.go
tree.go
wiki.go Fix an actions schedule bug (#28942) 2024-03-25 16:27:32 +01:00