     @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: ->

  createStackNameInput: (generatedStackTemplateTitle) ->

    { stackTemplate } = @getData()
    headerCssClass = 'StackEditorView--header'
    unless @canRead
      headerCssClass = 'StackEditorView--header readonly'
    @addSubView @header = new kd.CustomHTMLView
      tagName: 'header'
      cssClass: headerCssClass

    valueGetter = [
      EnvironmentFlux.getters.teamStackTemplates
