This commit is contained in:
hiifong 2025-01-12 13:09:08 +08:00
parent e875cbab8c
commit 56b13519e4
No known key found for this signature in database
GPG Key ID: 0814559E2F97194D

View File

@ -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
}