don't show the template area for non owners

This commit is contained in:
Henry Oswald 2014-03-13 17:10:06 +00:00
parent 7aab6c4c0b
commit b4c5f6f253

View file

@ -26,6 +26,7 @@ define [
ide: @ide
el: $("#publishProject")
@publishProjectView.render()
setupArea()
if @ide?
@ide.on "afterJoinProject", (project) =>
@ -49,8 +50,8 @@ define [
else
@view.options.showAdminControls = false
@view.render()
if @ide.project.get("owner")
if @ide.project.get("owner") == @ide.user
setupPublish()