Skip to content

Commit

Permalink
Hide org/create menu item in Dashboard if user has no rights (go-gite…
Browse files Browse the repository at this point in the history
  • Loading branch information
SagePtr committed Aug 12, 2018
1 parent 6e68b61 commit 5245517
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 5245517

Please sign in to comment.