show the publish template area to all project owners

This commit is contained in:
Henry Oswald 2014-03-26 16:01:10 +00:00
parent fe16bea798
commit 721eda71f3
2 changed files with 29 additions and 29 deletions

View file

@ -286,7 +286,6 @@
script(type="text/template")#publishProjectTemplate
-if(session && session.user && session.user.isAdmin)
.box
.page-header
h2 Publish project as template

View file

@ -25,6 +25,7 @@ define [
@publishProjectView?.refreshPublishStatus()
setupPublish = _.once =>
if @ide.security? and @ide.security.permissionsLevel == "owner"
@publishProjectView = new PublishProjectView
ide: @ide
el: $("#publishProject")