added lock to private posts on show pages
This commit is contained in:
parent
278c7ee0c4
commit
7bbf69e35e
2 changed files with 4 additions and 0 deletions
|
|
@ -18,5 +18,8 @@
|
|||
|
||||
<div class="post-time">
|
||||
<time datetime="{{created_at}}" />
|
||||
{{#unless public}}
|
||||
<i class="icon-lock"> </i>
|
||||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ app.views.PostViewerFeedback = app.views.Feedback.extend({
|
|||
hidePane : function(evt){ this.trigger("hidePane") },
|
||||
|
||||
requireAuth : function(evt) {
|
||||
if( app.currentUser.authenticated() ) { return }
|
||||
alert("you must be logged in to do that!")
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue