mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-20 11:43:57 +08:00
Remove
This commit is contained in:
parent
e875cbab8c
commit
56b13519e4
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user