Skip to content

Commit a4fa6bb

Browse files
SagePtrlafriks
authored andcommitted
Hide org/create menu item in Dashboard if user has no rights (#4678) (#4680)
1 parent 6e68b61 commit a4fa6bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/user/dashboard/navbar.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@
2323
</a>
2424
{{end}}
2525
</div>
26+
{{if .SignedUser.CanCreateOrganization}}
2627
<a class="item" href="{{AppSubUrl}}/org/create">
2728
<i class="octicon octicon-plus"></i>&nbsp;&nbsp;&nbsp;{{.i18n.Tr "new_org"}}
2829
</a>
30+
{{end}}
2931
</div>
3032
</div>
3133
</div>

0 commit comments

Comments
 (0)