 
   fetchFollowersWithRelationship: secure (client, query, page, callback)->
     JAccount = require '../models/account'
+    unless client.connection.delegate instanceof JAccount
+      return callback new KodingError 'Access denied'
     getQueryWithGroupMembers client, query, 'target', (err, filteredQuery)=>
       return callback err if err
       @fetchFollowers filteredQuery, page, (err, accounts)->


  follow: secure (client, options, callback)->
    JAccount = require '../models/account'
    [callback, options] = [options, callback] unless callback
    options or= {}
    follower = client.connection.delegate
    if @equals follower
      return callback(
        new KodingError("Can't follow yourself")


  fetchFollowingWithRelationship: secure (client, query, page, callback)->
    JAccount = require '../models/account'
    unless client.connection.delegate instanceof JAccount
      return callback new KodingError 'Access denied'
    getQueryWithGroupMembers client, query, 'source', (err, filteredQuery)=>
      return callback err if err
      @fetchFollowing query, page, (err, accounts)->
