     if @props.workflow and not @props.loadingSelectedWorkflow
       @loadAppropriateClassification(@props)
 
-    @validateUserGroup(@props)
+    @validateUserGroup(@props, @context)
 
   componentWillUpdate: (nextProps, nextState) ->
     @context.geordi.remember workflowID: nextProps?.workflow?.id

              'preferences.selected_workflow': props.preferences.settings.workflow_id
            props.preferences.save()

  validateUserGroup: (props) ->
    if props.location.query?.group? and props.user?
      apiClient.type('user_groups').get(props.location.query.group).then (group) =>
        @setState({ validUserGroup: group and group.links.users.includes(props.user.id) })

  clearUserGroupForClassification: (props, context) ->
    if (props.location.query?.group)
      @setState({ validUserGroup: false })
      newLocation = Object.assign({}, props.location, { query: '' });
      newLocation.search = '';
      context.router.push(newLocation);

# For debugging:

        @setState { classification: null }
        @loadAppropriateClassification(nextProps)
    if nextProps.loadingSelectedWorkflow is false and nextProps.user isnt null
      @shouldWorkflowAssignmentPrompt(nextProps, nextContext)

    if nextProps.location.query?.group isnt @props.location.query?.group or nextProps.user isnt @props.user
      @validateUserGroup(nextProps)
