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

This commit is contained in:
SagePtr 2018-08-13 13:22:15 +02:00 committed by Lauris BH
parent cfe6941905
commit cbe8a1f0e6
1 changed files with 2 additions and 0 deletions

View File

@ -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>