     return {
       team: TeamFlux.getters.team
     }
+
+  constructor: (props) ->
+
+    super props
+
+    canEdit = kd.singletons.groupsController.canEditGroup()
+    @state = {canEdit : canEdit}
 
 
   componentDidMount: ->


  handleSwitch: (state) ->

    allowedDomains = @state.team.get 'allowedDomains'
    allowedDomains = allowedDomains.toJS()
    allowedDomains = _.clone allowedDomains or []

    if state

React           = require 'kd-react'
View            = require './view'
TeamFlux        = require 'app/flux/teams'
showError       = require 'app/util/showError'
KDReactorMixin  = require 'app/flux/base/reactormixin'
copyToClipboard = require 'app/util/copyToClipboard'

