]> source.dussan.org Git - gitea.git/commit
Allow non-admin users to delete review requests (#29057)
authorZettat123 <zettat123@gmail.com>
Sat, 24 Feb 2024 12:38:43 +0000 (20:38 +0800)
committerGitHub <noreply@github.com>
Sat, 24 Feb 2024 12:38:43 +0000 (12:38 +0000)
commitc42083a33950be6ee9f822c6d0de3c3a79d1f51b
treeabbcefa5ef6f76d7c61a15c0836efa0907d7c2d9
parent267dbb4e938cc42dc09a4a893cca631b2f755557
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
33 files changed:
models/fixtures/access.yml
models/fixtures/collaboration.yml
models/fixtures/email_address.yml
models/fixtures/issue.yml
models/fixtures/org_user.yml
models/fixtures/pull_request.yml
models/fixtures/repo_unit.yml
models/fixtures/repository.yml
models/fixtures/team.yml
models/fixtures/team_repo.yml
models/fixtures/team_unit.yml
models/fixtures/team_user.yml
models/fixtures/user.yml
models/issues/issue_test.go
models/repo/repo_list_test.go
models/user/user_test.go
modules/indexer/issues/indexer_test.go
routers/web/repo/issue.go
services/issue/assignee.go
tests/gitea-repositories-meta/org41/repo61.git/HEAD [new file with mode: 0644]
tests/gitea-repositories-meta/org41/repo61.git/config [new file with mode: 0644]
tests/gitea-repositories-meta/org41/repo61.git/description [new file with mode: 0644]
tests/gitea-repositories-meta/org41/repo61.git/info/exclude [new file with mode: 0644]
tests/gitea-repositories-meta/user40/repo60.git/HEAD [new file with mode: 0644]
tests/gitea-repositories-meta/user40/repo60.git/config [new file with mode: 0644]
tests/gitea-repositories-meta/user40/repo60.git/description [new file with mode: 0644]
tests/gitea-repositories-meta/user40/repo60.git/info/exclude [new file with mode: 0644]
tests/integration/api_issue_test.go
tests/integration/api_nodeinfo_test.go
tests/integration/api_org_test.go
tests/integration/api_pull_review_test.go
tests/integration/api_repo_test.go
tests/integration/issue_test.go