Compare commits

...

2 Commits

Author SHA1 Message Date
ByteList 024b56eb02 Debug 2019-01-30 15:42:23 +01:00
ByteList f4a35a3418 Debug 2019-01-30 15:41:45 +01:00
2 changed files with 5 additions and 16 deletions

View File

@ -1,16 +1,4 @@
[简体中文](https://github.com/go-gitea/gitea/blob/master/README_ZH.md)
# Gitea - Git with a cup of tea
[![Build Status](https://drone.gitea.io/api/badges/go-gitea/gitea/status.svg)](https://drone.gitea.io/go-gitea/gitea)
[![Join the Discord chat at https://discord.gg/NsatcWJ](https://img.shields.io/discord/322538954119184384.svg)](https://discord.gg/NsatcWJ)
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea)
[![Go Report Card](https://goreportcard.com/badge/code.gitea.io/gitea)](https://goreportcard.com/report/code.gitea.io/gitea)
[![GoDoc](https://godoc.org/code.gitea.io/gitea?status.svg)](https://godoc.org/code.gitea.io/gitea)
[![GitHub release](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest)
[![Help Contribute to Open Source](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea)
[![Become a backer/sponsor of gitea](https://opencollective.com/gitea/tiers/backer/badge.svg?label=backer&color=brightgreen)](https://opencollective.com/gitea)
# Gitea - WSE
## Purpose
@ -29,7 +17,7 @@ This project has been
From the root of the source tree, run:
TAGS="bindata" make generate all
TAGS="bindata sqlite sqlite_unlock_notify" make generate build
More info: https://docs.gitea.io/en-us/install-from-source/

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)