diff options
author | SagePtr <sageptr@gmail.com> | 2018-08-12 19:16:10 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-08-12 20:16:10 +0300 |
commit | a4fa6bbc89134d60bcbcaf1d8826aa769d017c91 (patch) | |
tree | 2d87b93e64d3dd051b93f215c992eadf2e38caa1 /templates | |
parent | 6e68b614791299212eaac2417f245878d688b4cc (diff) | |
download | gitea-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.tmpl | 2 |
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> {{.i18n.Tr "new_org"}} </a> + {{end}} </div> </div> </div> |