diff options
author | Gusted <williamzijl7@hotmail.com> | 2021-11-08 16:45:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 23:45:37 +0800 |
commit | 640f0e1ddf7a5cae8a778e989046e7438067a56c (patch) | |
tree | 8d7dd0f745455a9aab4328224f3e5d5755dea8f9 /models/repo_permission_test.go | |
parent | ebaf4c48ea278955c5d79c5f37a2039ccb3cf775 (diff) | |
download | gitea-640f0e1ddf7a5cae8a778e989046e7438067a56c.tar.gz gitea-640f0e1ddf7a5cae8a778e989046e7438067a56c.zip |
Only allow returned deleted branche to be on repo (#17570)
- This will only allow `GetDeletedBranchByID` to return deletedBranch
which are on the repo, and thus don't return a deletedBranch from
another repo.
- This just should prevent possible bugs in the futher when a code is
passing the wrong ID into this function.
Diffstat (limited to 'models/repo_permission_test.go')
0 files changed, 0 insertions, 0 deletions