mirror of
https://github.com/go-gitea/gitea
synced 2025-01-02 16:35:59 +01:00
Add todo for checking permissions
This commit is contained in:
parent
71ff661faa
commit
024e2fce51
@ -398,6 +398,7 @@ func UpdatePullReviewRequest(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Team review request should check if the team has permission to review the PR
|
||||||
_, err = pull_service.TeamReviewRequest(ctx, issue.PullRequest, ctx.Doer, team, action == "attach")
|
_, err = pull_service.TeamReviewRequest(ctx, issue.PullRequest, ctx.Doer, team, action == "attach")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if issues_model.IsErrNotValidReviewRequest(err) {
|
if issues_model.IsErrNotValidReviewRequest(err) {
|
||||||
@ -430,6 +431,7 @@ func UpdatePullReviewRequest(ctx *context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Reviewer review request should check if the user has permission to review the PR
|
||||||
_, err = pull_service.ReviewRequest(ctx, issue.PullRequest, ctx.Doer, &ctx.Repo.Permission, reviewer, action == "attach")
|
_, err = pull_service.ReviewRequest(ctx, issue.PullRequest, ctx.Doer, &ctx.Repo.Permission, reviewer, action == "attach")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if issues_model.IsErrNotValidReviewRequest(err) {
|
if issues_model.IsErrNotValidReviewRequest(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user