       res.locals.sd.USER = author.toJSON()
     complete: -> next()
 
-isAdmin = (user) ->
-  _.find sd.ADMIN_SLUGS?.split(','), (slug) -> slug is user?.get('slug')
-
 showTips = (req, res) ->
   (req.user?.id is res.locals.author.id and req.user?.get('show_tour') isnt false)
 

      res.render "index", author: res.locals.author, blocks: blocks.models

@index = (req, res, next) ->

  return next() unless res.locals.author

  channels = new UserBlocks null,

@channels = (req, res, next) ->
  return next() unless res.locals.author

  send = channelsVariables req
  graphQL send
    .then (response) ->
      res.locals.sd.QUERY = req.query.q
      res.locals.sd.PROFILE_CHANNELS = response.user.contents
      res.locals.sd.SORT = send.variables.sort

      res.render 'profile',
        channels: response.user.contents
