This commit is contained in:
nimesulide
2025-11-13 12:32:04 +08:00
repo.diff.parent dbb295fc7c
repo.diff.commit 1bba6fe4d9

repo.diff.view_file

@@ -338,8 +338,6 @@ func EditUserPost(ctx *context.Context) {
}
form := web.GetForm(ctx).(*forms.AdminEditUserForm)
// TEMP LOG: dump received form values to help debug allow_create_actrunner binding
log.Error("DEBUG EditUserPost START: received form values: AllowCreateActRunner=%v, AllowCreateDevcontainer=%v, AllowCreateOrganization=%v, Admin=%v, Active=%v, ProhibitLogin=%v", form.AllowCreateActRunner, form.AllowCreateDevcontainer, form.AllowCreateOrganization, form.Admin, form.Active, form.ProhibitLogin)
if ctx.HasError() {
ctx.HTML(http.StatusOK, tplUserEdit)
return
@@ -453,8 +451,6 @@ func EditUserPost(ctx *context.Context) {
}
return
}
log.Error("DEBUG EditUserPost AFTER UpdateUser: AllowCreateActRunner now=%v", u.AllowCreateActRunner)
log.Trace("Account profile updated by admin (%s): %s", ctx.Doer.Name, u.Name)
if form.Reset2FA {
tf, err := auth.GetTwoFactorByUID(ctx, u.ID)