Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-30 22:06:11 +01:00

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

This commit is contained in:
SagePtr 2018-08-12 19:16:10 +02:00 committed by Lauris BH
parent 6e68b61479
commit a4fa6bbc89

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>