summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSagePtr <sageptr@gmail.com>2018-08-12 19:16:10 +0200
committerLauris BH <lauris@nix.lv>2018-08-12 20:16:10 +0300
commita4fa6bbc89134d60bcbcaf1d8826aa769d017c91 (patch)
tree2d87b93e64d3dd051b93f215c992eadf2e38caa1 /templates
parent6e68b614791299212eaac2417f245878d688b4cc (diff)
downloadgitea-a4fa6bbc89134d60bcbcaf1d8826aa769d017c91.tar.gz
gitea-a4fa6bbc89134d60bcbcaf1d8826aa769d017c91.zip
Hide org/create menu item in Dashboard if user has no rights (#4678) (#4680)
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/navbar.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl
index 0a395bc329..c6b723b012 100644
--- a/templates/user/dashboard/navbar.tmpl
+++ b/templates/user/dashboard/navbar.tmpl
@@ -23,9 +23,11 @@
</a>
{{end}}
</div>
+ {{if .SignedUser.CanCreateOrganization}}
<a class="item" href="{{AppSubUrl}}/org/create">
<i class="octicon octicon-plus"></i>&nbsp;&nbsp;&nbsp;{{.i18n.Tr "new_org"}}
</a>
+ {{end}}
</div>
</div>
</div>