Skip to content

Commit

Permalink
Move owner access check
Browse files Browse the repository at this point in the history
Template shouldn't render if not owner
  • Loading branch information
aaronjudd committed Apr 10, 2014
1 parent 30dda8c commit 696ca8a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ Template.headerTags.helpers
tagsComponent: ->
currentTag = Session.get "currentTag"
if Session.equals "isEditing-"+currentTag, true
return Template.tagInputForm
if Meteor.app.hasOwnerAccess()
return Template.tagInputForm
else
return Template.headerLinks
else
return Template.headerLinks

Expand Down Expand Up @@ -113,7 +116,6 @@ Template.tagInputForm.rendered = ->
# Inline field editing, handling
# http://vitalets.github.io/x-editable/docs.html
# *****************************************************
if Meteor.app.hasOwnerAccess()
$(".tag-edit-list").sortable
items: "> li"
axis: "x"
Expand Down

0 comments on commit 696ca8a

Please sign in to comment.