mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-25 08:03:54 +01:00
Backport #35894 by zorrobiwan Signed-off-by: Alberty Pascal <github@albertyorban.be> Co-authored-by: Alberty Pascal <github@albertyorban.be>
This commit is contained in:
parent
327f2207dc
commit
ce70863793
@ -897,7 +897,7 @@ func EditBranchProtection(ctx *context.APIContext) {
|
|||||||
} else {
|
} else {
|
||||||
whitelistUsers = protectBranch.WhitelistUserIDs
|
whitelistUsers = protectBranch.WhitelistUserIDs
|
||||||
}
|
}
|
||||||
if form.ForcePushAllowlistDeployKeys != nil {
|
if form.ForcePushAllowlistUsernames != nil {
|
||||||
forcePushAllowlistUsers, err = user_model.GetUserIDsByNames(ctx, form.ForcePushAllowlistUsernames, false)
|
forcePushAllowlistUsers, err = user_model.GetUserIDsByNames(ctx, form.ForcePushAllowlistUsernames, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if user_model.IsErrUserNotExist(err) {
|
if user_model.IsErrUserNotExist(err) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user