mirror of https://github.com/go-gitea/gitea.git
Use correct form field for allowed force push users in branch protection API (#35894)
Test was wrong and preventing update of force push allow users list by the API Resolves #35893 Signed-off-by: Alberty Pascal <github@albertyorban.be>pull/35773/head^2
parent
050c9485df
commit
c4c4cf5687
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue