   getCurrentGroup:->
     throw 'FIXME: array should never be passed'  if Array.isArray @currentGroupData.data
     return @currentGroupData.data
+
+  currentGroupHasStack: ->
+    {stackTemplates} = @getCurrentGroup()
+    return stackTemplates?.length > 0
+
 
   filterXssAndForwardEvents: (target, events) ->
     events.forEach (event) =>

        policy.emit 'MembershipPolicyChangeSaved'
        new KDNotificationView {title:"Membership policy has been updated."}
      showError err


kd                 = require 'kd'
KDController       = kd.Controller
KDNotificationView = kd.NotificationView

whoami             = require '../util/whoami'
getGroup           = require '../util/getGroup'
showError          = require '../util/showError'
trackEvent         = require '../util/trackEvent'

remote             = require('../remote').getInstance()
globals            = require 'globals'
GroupData          = require './groupdata'


module.exports = class GroupsController extends KDController
