Browse Source

Hide org/create menu item in Dashboard if user has no rights (#4678) (#4680)

tags/v1.6.0-dev
SagePtr Lauris BH 6 years ago
parent
commit
c18c9c84ca
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      templates/user/dashboard/navbar.tmpl

+ 2
- 0
templates/user/dashboard/navbar.tmpl View File

@@ -23,9 +23,11 @@
</a> </a>
{{end}} {{end}}
</div> </div>
{{if .SignedUser.CanCreateOrganization}}
<a class="item" href="{{AppSubUrl}}/org/create"> <a class="item" href="{{AppSubUrl}}/org/create">
<i class="octicon octicon-plus"></i>&nbsp;&nbsp;&nbsp;{{.i18n.Tr "new_org"}} <i class="octicon octicon-plus"></i>&nbsp;&nbsp;&nbsp;{{.i18n.Tr "new_org"}}
</a> </a>
{{end}}
</div> </div>
</div> </div>
</div> </div>


Loading…
Cancel
Save