Skip to content

Commit bf44a99

Browse files
committedOct 19, 2015
Only show submit post link if logged in.
chapter7-5
1 parent 700ecc4 commit bf44a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎client/templates/includes/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212
<div class="collapse navbar-collapse" id="navigation">
1313
<ul class="nav navbar-nav">
14-
<li><a href="{{pathFor 'postSubmit'}}">Submit Post</a></li>
14+
{{#if currentUser}}<li><a href="{{pathFor 'postSubmit'}}">Submit Post</a></li>{{/if}}
1515
</ul>
1616
<ul class="nav navbar-nav navbar-right">
1717
{{> loginButtons}}

0 commit comments

Comments
 (0)