Compare commits
2 Commits
83e2f421d9
...
024b56eb02
| Author | SHA1 | Date |
|---|---|---|
|
|
024b56eb02 | |
|
|
f4a35a3418 |
16
README.md
16
README.md
|
|
@ -1,16 +1,4 @@
|
|||
[简体中文](https://github.com/go-gitea/gitea/blob/master/README_ZH.md)
|
||||
|
||||
# Gitea - Git with a cup of tea
|
||||
|
||||
[](https://drone.gitea.io/go-gitea/gitea)
|
||||
[](https://discord.gg/NsatcWJ)
|
||||
[](https://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
|
||||
[](https://codecov.io/gh/go-gitea/gitea)
|
||||
[](https://goreportcard.com/report/code.gitea.io/gitea)
|
||||
[](https://godoc.org/code.gitea.io/gitea)
|
||||
[](https://github.com/go-gitea/gitea/releases/latest)
|
||||
[](https://www.codetriage.com/go-gitea/gitea)
|
||||
[](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/
|
||||
|
||||
|
|
|
|||
|
|
@ -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