Debug
This commit is contained in:
@@ -394,6 +394,9 @@ func showOrgProfile(ctx *context.Context) {
|
|||||||
count int64
|
count int64
|
||||||
err error
|
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 {
|
if ctx.IsSigned && !ctx.User.IsAdmin {
|
||||||
env, err := org.AccessibleReposEnv(ctx.User.ID)
|
env, err := org.AccessibleReposEnv(ctx.User.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -414,8 +417,6 @@ func showOrgProfile(ctx *context.Context) {
|
|||||||
} else {
|
} else {
|
||||||
showPrivate := ctx.IsSigned && ctx.User.IsAdmin
|
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, "")
|
repos, err = models.GetUserRepositories(org.ID, showPrivate, page, setting.UI.User.RepoPagingNum, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError("GetRepositories", err)
|
ctx.ServerError("GetRepositories", err)
|
||||||
|
|||||||
Reference in New Issue
Block a user