     @tabView.on 'PaneDidShow', (pane) =>
       if pane.name is 'Credentials'
         @warningView.hide()
-      unless @isMine
+      unless @canRead
         if pane.name isnt 'Credentials'
           @warningView.show()
 


    @listenContentChanges()

    if not @isMine and stackTemplate
      @tabView.setClass 'StackEditorTabs isntMine'
      @warningView.show()
      @deleteStack.hide()
      @saveButton.setClass 'isntMine'
      @inputTitle.setClass 'template-title isntMine'
      @titleActionsWrapper.hide()


  listenContentChanges: ->


    @editorViews.stackTemplate = @stackTemplateView = new StackTemplateView {
      delegate: this
      @canRead
    }, data

    @tabView.addPane stackTemplatePane = new kd.TabPaneView
