From b9376b2b917ff6f97a1d17a54874fb2130c80ffc Mon Sep 17 00:00:00 2001 From: Alberty Pascal Date: Fri, 7 Nov 2025 11:51:03 +0100 Subject: [PATCH] Change ForcePushAllowlistDeployKeys to forcePushAllowlistUsers Test was wrong and preventing update of force push allow users list by the API Signed-off-by: Alberty Pascal --- routers/api/v1/repo/branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/repo/branch.go b/routers/api/v1/repo/branch.go index a337ed7938867..b9060e9cbd09f 100644 --- a/routers/api/v1/repo/branch.go +++ b/routers/api/v1/repo/branch.go @@ -897,7 +897,7 @@ func EditBranchProtection(ctx *context.APIContext) { } else { whitelistUsers = protectBranch.WhitelistUserIDs } - if form.ForcePushAllowlistDeployKeys != nil { + if form.ForcePushAllowlistUsernames != nil { forcePushAllowlistUsers, err = user_model.GetUserIDsByNames(ctx, form.ForcePushAllowlistUsernames, false) if err != nil { if user_model.IsErrUserNotExist(err) {