master
ByteList 2019-01-31 16:35:32 +01:00
parent 024b56eb02
commit fbc77679a9
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
}
// Dashboard render the dashborad page
func Dashboard(ctx *context.Context) {
func Dashboard(ctx *context.Context) { // showing dashboard see routes.go:417
ctxUser := getDashboardContextUser(ctx)
if ctx.Written() {
return
@ -395,7 +395,7 @@ func showOrgProfile(ctx *context.Context) {
err error
)
fmt.Println("[DEBUG/home.go] ctx.IsSigned, ctx.User.IsAdmin: ", ctx.IsSigned, ", ", ctx.User.IsAdmin, " = ", ctx.IsSigned && ctx.User.IsAdmin)
fmt.Println("[DEBUG/user/home.go] ctx.IsSigned, ctx.User.IsAdmin: ", ctx.IsSigned, ", ", ctx.User.IsAdmin, " = ", ctx.IsSigned && ctx.User.IsAdmin)
if ctx.IsSigned && !ctx.User.IsAdmin {
env, err := org.AccessibleReposEnv(ctx.User.ID)