master
ByteList 2019-01-30 15:41:45 +01:00
parent 83e2f421d9
commit f4a35a3418
1 changed files with 3 additions and 2 deletions

View File

@ -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)