From 80fd25524e13dedbdc3527b32d008de152213a89 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Tue, 22 Mar 2022 08:03:22 +0100 Subject: Renamed ctx.User to ctx.Doer. (#19161) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: wxiaoguang --- routers/web/admin/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routers/web/admin/admin.go') diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go index fac3ef9622..63bc7de7d7 100644 --- a/routers/web/admin/admin.go +++ b/routers/web/admin/admin.go @@ -149,7 +149,7 @@ func DashboardPost(ctx *context.Context) { if form.Op != "" { task := cron.GetTask(form.Op) if task != nil { - go task.RunWithUser(ctx.User, nil) + go task.RunWithUser(ctx.Doer, nil) ctx.Flash.Success(ctx.Tr("admin.dashboard.task.started", ctx.Tr("admin.dashboard."+form.Op))) } else { ctx.Flash.Error(ctx.Tr("admin.dashboard.task.unknown", form.Op)) -- cgit v1.2.3