 
   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'

          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)


  @fetchMyFollowees = secure (client, ids, callback)->
    return callback null  unless ids

    unless client.connection.delegate instanceof JAccount
      return callback new KodingError 'Access denied'

    Relationship.someData {
      sourceId  :
