   Router.onBeforeAction hasProfile, { except: ['profiles'] }
   Router.onBeforeAction applyProfile
 #  Router.onBeforeAction 'loading'
+  Router.onBeforeAction (pause) ->
+    # Temporary until loading works
+#    if not @ready()
+#      pause()
   Router.onBeforeAction 'dataNotFound'
 
 Router.map ->

checkLoggedIn = (pause) ->
  if not Meteor.user() and not Meteor.loggingIn()
    @render('public')
    pause()

#  if Meteor.loggingIn() and not (__fast_render_config?.subscriptions?.currentUser and Meteor.user())
#    thisLoadingTemplate = @lookupProperty 'loadingTemplate'

    data: -> {}
  }

  # TODO: Fix FastRender
  @route 'accounts', {
    path: '/:profileId/accounts'
    fastRender: true
