Allow non-admin users to delete review requests (#29057)

Fix #14459

The following users can add/remove review requests of a PR
- the poster of the PR
- the owner or collaborators of the repository
- members with read permission on the pull requests unit
This commit is contained in:
Zettat123 2024-02-24 20:38:43 +08:00 committed by GitHub
parent 267dbb4e93
commit c42083a339
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 656 additions and 103 deletions

View file

@ -379,7 +379,7 @@ func TestCountIssues(t *testing.T) {
assert.NoError(t, unittest.PrepareTestDatabase())
count, err := issues_model.CountIssues(db.DefaultContext, &issues_model.IssuesOptions{})
assert.NoError(t, err)
assert.EqualValues(t, 20, count)
assert.EqualValues(t, 22, count)
}
func TestIssueLoadAttributes(t *testing.T) {