summaryrefslogtreecommitdiffstats
path: root/templates/repo/pulls
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-08 17:24:10 +0800
committerUnknwon <u@gogs.io>2015-08-08 17:24:10 +0800
commite3bdfd51ff4a3987c9c14d46d4c145f550b42d01 (patch)
treecb9629ce61cbc79e99fe9b910e92890e0dea4117 /templates/repo/pulls
parent9db4acc62e2d253c21ce9aed2e21003ff235d5b5 (diff)
downloadgitea-e3bdfd51ff4a3987c9c14d46d4c145f550b42d01.tar.gz
gitea-e3bdfd51ff4a3987c9c14d46d4c145f550b42d01.zip
better fork permission check
Diffstat (limited to 'templates/repo/pulls')
-rw-r--r--templates/repo/pulls/fork.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/repo/pulls/fork.tmpl b/templates/repo/pulls/fork.tmpl
index acac9040f0..2f76cf002a 100644
--- a/templates/repo/pulls/fork.tmpl
+++ b/templates/repo/pulls/fork.tmpl
@@ -24,11 +24,13 @@
{{.SignedUser.Name}}
</div>
{{range .Orgs}}
+ {{if .IsOwnedBy $.SignedUser.Id}}
<div class="item" data-value="{{.Id}}">
<img class="ui mini avatar image" src="{{.AvatarLink}}">
{{.Name}}
</div>
{{end}}
+ {{end}}
</div>
</div>
</div>