From b254f31a7e3ce1e68bcc6142bf251462167cdaa6 Mon Sep 17 00:00:00 2001 From: ByteList Date: Fri, 1 Feb 2019 11:16:51 +0100 Subject: [PATCH] Debug --- routers/user/home.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/user/home.go b/routers/user/home.go index 0c4393999..16b9becf1 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -132,7 +132,6 @@ func Dashboard(ctx *context.Context) { // showing dashboard see routes.go:417 } ctx.Data["MirrorCount"] = len(mirrors) ctx.Data["Mirrors"] = mirrors - ctx.Data["Repos"] = mirrors retrieveFeeds(ctx, models.GetFeedsOptions{ RequestedUser: ctxUser, @@ -398,6 +397,8 @@ func showOrgProfile(ctx *context.Context) { fmt.Println("[DEBUG/user/home.go] ctx.IsSigned, ctx.User.IsAdmin: ", ctx.IsSigned, ", ", ctx.User.IsAdmin, " = ", ctx.IsSigned && ctx.User.IsAdmin) + fmt.Println("[DEBUG/user/home.go] ctx.User.Name: ", ctx.User.Name) + if ctx.IsSigned && !ctx.User.IsAdmin { env, err := org.AccessibleReposEnv(ctx.User.ID) if err != nil {