Debug
parent
024b56eb02
commit
fbc77679a9
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue