Skip to content

Commit

Permalink
Remove
Browse files Browse the repository at this point in the history
  • Loading branch information
hiifong committed Jan 12, 2025
1 parent e875cba commit 56b1351
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/pull/edits.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ func SetAllowEdits(ctx context.Context, doer *user_model.User, pr *issues_model.
return ErrUserHasNoPermissionForAction
}

if doer.ID == pr.Issue.PosterID {
pr.AllowMaintainerEdit = allow
return issues_model.UpdateAllowEdits(ctx, pr)
}

if err := pr.LoadHeadRepo(ctx); err != nil {
return err
}
Expand Down

0 comments on commit 56b1351

Please sign in to comment.