Skip to content

Commit

Permalink
Add 'return false' when the canComment conditions are not met
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbushnell committed Aug 7, 2014
1 parent a5bee68 commit 97029a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/views/posts/post_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Template.post_page.helpers({

if (canComment(Meteor.user()) && !isAccepted && !isRejected) {
return true;
} else {

This comment has been minimized.

Copy link
@aaronbushnell

aaronbushnell Aug 7, 2014

Author

@jakerella Added in a return false; when the condition is not met

return false;
}
}
});
Expand Down

0 comments on commit 97029a0

Please sign in to comment.