aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-06 23:48:49 -0400
committerUnknwon <u@gogs.io>2017-04-06 23:48:49 -0400
commitac43eab51f9ac0d4c4bcc6db2bbc9ce3dbb34b7b (patch)
tree4e5fd54b821ef1af312e4d1f1c1a9befad7054a7 /routers/api/v1/repo/repo.go
parent8d0417497b39aa196400d39c99bbd79cfb364f9f (diff)
Refactoring: rename Signed -> Logged
Diffstat (limited to 'routers/api/v1/repo/repo.go')
-rw-r--r--routers/api/v1/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index e095954a..fdb3e7a5 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -28,7 +28,7 @@ func Search(ctx *context.APIContext) {
}
// Check visibility.
- if ctx.IsSigned && opts.OwnerID > 0 {
+ if ctx.IsLogged && opts.OwnerID > 0 {
if ctx.User.ID == opts.OwnerID {
opts.Private = true
} else {