templates/org/home.tmpl: fix org member can't see public repo

This commit is contained in:
Unknwon 2015-02-22 03:07:04 -05:00
parent a6a99d49cf
commit c753fdceaf
3 changed files with 72 additions and 72 deletions

View file

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/modules/setting"
) )
const APP_VER = "0.5.14.0221 Beta" const APP_VER = "0.5.14.0222 Beta"
func init() { func init() {
runtime.GOMAXPROCS(runtime.NumCPU()) runtime.GOMAXPROCS(runtime.NumCPU())

View file

@ -1 +1 @@
0.5.14.0221 Beta 0.5.14.0222 Beta

View file

@ -27,7 +27,7 @@
</div> </div>
<div id="org-repo-list"> <div id="org-repo-list">
{{range .Repos}} {{range .Repos}}
{{if .HasAccess $.SignedUser.Name}} {{if or (not .IsPrivate) (.HasAccess $.SignedUser.Name)}}
<div class="org-repo-item"> <div class="org-repo-item">
<ul class="org-repo-status right"> <ul class="org-repo-status right">
<li><i class="octicon octicon-star"></i> {{.NumStars}}</li> <li><i class="octicon octicon-star"></i> {{.NumStars}}</li>