Compare commits

..

No commits in common. "024b56eb0218b72d35562b68ffc4be2026c6f2ad" and "83e2f421d98be4ae7cf1f67629f1d52a364ae7fa" have entirely different histories.

2 changed files with 16 additions and 5 deletions

View File

@ -1,4 +1,16 @@
# Gitea - WSE [简体中文](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)
## Purpose ## Purpose
@ -17,7 +29,7 @@ This project has been
From the root of the source tree, run: From the root of the source tree, run:
TAGS="bindata sqlite sqlite_unlock_notify" make generate build TAGS="bindata" make generate all
More info: https://docs.gitea.io/en-us/install-from-source/ More info: https://docs.gitea.io/en-us/install-from-source/

View File

@ -394,9 +394,6 @@ 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 {
@ -417,6 +414,8 @@ 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)