summaryrefslogtreecommitdiffstats
path: root/routers/web/user/setting/adopt.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/user/setting/adopt.go')
-rw-r--r--routers/web/user/setting/adopt.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/setting/adopt.go b/routers/web/user/setting/adopt.go
index 348705b743..ce2377a997 100644
--- a/routers/web/user/setting/adopt.go
+++ b/routers/web/user/setting/adopt.go
@@ -28,7 +28,7 @@ func AdoptOrDeleteRepository(ctx *context.Context) {
dir := ctx.FormString("id")
action := ctx.FormString("action")
- ctxUser := ctx.User
+ ctxUser := ctx.Doer
root := user_model.UserPath(ctxUser.LowerName)
// check not a repo