diff options
Diffstat (limited to 'routers/web/user/task.go')
-rw-r--r-- | routers/web/user/task.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/task.go b/routers/web/user/task.go index 4dbd1b8537..fd561cdd4c 100644 --- a/routers/web/user/task.go +++ b/routers/web/user/task.go @@ -15,7 +15,7 @@ import ( // TaskStatus returns task's status func TaskStatus(ctx *context.Context) { - task, opts, err := models.GetMigratingTaskByID(ctx.ParamsInt64("task"), ctx.User.ID) + task, opts, err := models.GetMigratingTaskByID(ctx.ParamsInt64("task"), ctx.Doer.ID) if err != nil { if models.IsErrTaskDoesNotExist(err) { ctx.JSON(http.StatusNotFound, map[string]interface{}{ |