Skip to content

Commit

Permalink
check that a user is logged in before showing the menu items on the h…
Browse files Browse the repository at this point in the history
…ome page
  • Loading branch information
RyanNoelk committed Mar 12, 2019
1 parent cd664c5 commit e12a5c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/news/components/News.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class News extends React.Component {
</Carousel>
<div className="container">
<div className="row">
<Menu SimpleLayout={UpComingRecipes} />
{ this.props.user && this.props.user.id !== 0
? <Menu SimpleLayout={UpComingRecipes} public />
: ''
}
</div>
<div className="row">
<h3 className="page-header">Recommended Recipes</h3>
Expand Down

0 comments on commit e12a5c9

Please sign in to comment.