Skip to content

Commit

Permalink
Hide org/create menu item in Dashboard if user has no rights (#4678) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SagePtr authored and lafriks committed Aug 13, 2018
1 parent cfe6941 commit cbe8a1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/user/dashboard/navbar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit cbe8a1f

Please sign in to comment.