 
   countFollowersWithRelationship: secure (client, query, 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
       @countFollowers filteredQuery, (err, count)->

          callback null, cursor

  @someWithRelationship = secure (client, selector, options, callback)->
    @some selector, options, (err, followables)=>
      if err then callback err else @markFollowing client, followables, callback

  @markFollowing = secure (client, followables, callback)->
    Relationship.all
      sourceId  :
        $in     : (followable.getId() for followable in followables)


  countFollowingWithRelationship: secure (client, query, 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
      @countFollowing query, (err, count)->
        if err then callback err else callback null, count

  fetchFollowedTopics: secure (client, query, page, callback)->
    JAccount = require '../models/account'
    unless client.connection.delegate instanceof JAccount
      return callback new KodingError 'Access denied'
    extend query,
      targetId  : @getId()
      as        : 'follower'
