This commit is contained in:
2025-11-13 12:26:59 +08:00
parent fbb30e8daf
commit dbb295fc7c
2 changed files with 4 additions and 1 deletions

View File

@@ -967,7 +967,9 @@ func UpdateUserCols(ctx context.Context, u *User, cols ...string) error {
return err
}
log.Error("DEBUG UpdateUserCols: ID=%d, cols=%v, AllowCreateActRunner=%v", u.ID, cols, u.AllowCreateActRunner)
_, err := db.GetEngine(ctx).ID(u.ID).Cols(cols...).Update(u)
log.Error("DEBUG UpdateUserCols AFTER update: err=%v", err)
return err
}

View File

@@ -339,7 +339,7 @@ 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.Info("AdminEditUserPost: 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)
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,6 +453,7 @@ 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 {