 
     super options, data
 
-    @isMine = stackTemplate?.isMine()
+    @isMine = yes
+    kd.singletons.groupsController.ready =>
+
+      { groupsController } = kd.singletons
+      @isMine = stackTemplate?.isMine() or groupsController.canEditGroup()
+
+      unless @isMine
+        @tabView.setClass 'StackEditorTabs isntMine'
+        @warningView.show()
+        @secondaryActions.hide()
+        @saveButton.hide()
+        @inputTitle.setClass 'template-title isntMine'
+
+
 
     @setClass 'edit-mode'  if inEditMode = @getOption 'inEditMode'
 


    @editorViews.variables = @variablesView = new VariablesView {
      delegate: this
      stackTemplate
    }
    @tabView.addPane variablesPane = new kd.TabPaneView
      name : 'Custom Variables'
      view : @variablesView

    @editorViews.readme = @readmeView = new ReadmeView { stackTemplate }
    @tabView.addPane readmePane = new kd.TabPaneView
      name : 'Readme'
      view : @readmeView

    @createStackNameInput generateStackTemplateTitle

    stackEditorTabsCssClass = unless @isMine then 'StackEditorTabs isntMine' else 'StackEditorTabs'

    @addSubView @tabView = new kd.TabView
      hideHandleCloseIcons : yes
      maxHandleWidth       : 300
      cssClass             : stackEditorTabsCssClass


    @tabView.addSubView @warningView = new kd.CustomHTMLView
      cssClass: 'warning-view hidden'
      partial: 'You must be an admin to edit this stack.'

    @addSubView @secondaryActions = new kd.CustomHTMLView
      cssClass             : 'StackEditor-SecondaryActions'


    @secondaryActions.addSubView new CustomLinkView
      cssClass : 'HomeAppView--button danger'
      title    : 'DELETE STACK TEMPLATE'
      click    : @bound 'deleteStack'

