aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue_lock.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue_lock.go')
-rw-r--r--routers/web/repo/issue_lock.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/issue_lock.go b/routers/web/repo/issue_lock.go
index 103b60c65d..b016818669 100644
--- a/routers/web/repo/issue_lock.go
+++ b/routers/web/repo/issue_lock.go
@@ -35,7 +35,7 @@ func LockIssue(ctx *context.Context) {
}
if err := models.LockIssue(&models.IssueLockOptions{
- Doer: ctx.User,
+ Doer: ctx.Doer,
Issue: issue,
Reason: form.Reason,
}); err != nil {
@@ -60,7 +60,7 @@ func UnlockIssue(ctx *context.Context) {
}
if err := models.UnlockIssue(&models.IssueLockOptions{
- Doer: ctx.User,
+ Doer: ctx.Doer,
Issue: issue,
}); err != nil {
ctx.ServerError("UnlockIssue", err)