mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
Updates to the API for archived repos (#27149)
This commit is contained in:
@ -285,7 +285,7 @@ func DeleteProtectedBranchRulePost(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if err := git_model.DeleteProtectedBranch(ctx, ctx.Repo.Repository.ID, ruleID); err != nil {
|
||||
if err := git_model.DeleteProtectedBranch(ctx, ctx.Repo.Repository, ruleID); err != nil {
|
||||
ctx.Flash.Error(ctx.Tr("repo.settings.remove_protected_branch_failed", rule.RuleName))
|
||||
ctx.JSONRedirect(fmt.Sprintf("%s/settings/branches", ctx.Repo.RepoLink))
|
||||
return
|
||||
|
Reference in New Issue
Block a user