Debug
parent
83e2f421d9
commit
f4a35a3418
|
|
@ -394,6 +394,9 @@ func showOrgProfile(ctx *context.Context) {
|
|||
count int64
|
||||
err error
|
||||
)
|
||||
|
||||
fmt.Println("[DEBUG/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)
|
||||
if err != nil {
|
||||
|
|
@ -414,8 +417,6 @@ func showOrgProfile(ctx *context.Context) {
|
|||
} else {
|
||||
showPrivate := ctx.IsSigned && ctx.User.IsAdmin
|
||||
|
||||
fmt.Println("[DEBUG/home.go] showPrivate := ctx.IsSigned && ctx.User.IsAdmin: ", showPrivate)
|
||||
|
||||
repos, err = models.GetUserRepositories(org.ID, showPrivate, page, setting.UI.User.RepoPagingNum, "")
|
||||
if err != nil {
|
||||
ctx.ServerError("GetRepositories", err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue