Skip to content

Commit 4b51a65

Browse files
authored
Merge branch 'main' into fix/35763-project-page-title
2 parents 7c0543b + c4c4cf5 commit 4b51a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ func EditBranchProtection(ctx *context.APIContext) {
897897
} else {
898898
whitelistUsers = protectBranch.WhitelistUserIDs
899899
}
900-
if form.ForcePushAllowlistDeployKeys != nil {
900+
if form.ForcePushAllowlistUsernames != nil {
901901
forcePushAllowlistUsers, err = user_model.GetUserIDsByNames(ctx, form.ForcePushAllowlistUsernames, false)
902902
if err != nil {
903903
if user_model.IsErrUserNotExist(err) {

0 commit comments

Comments
 (0)