                 callback err, newStorage
         else
           callback error, storage
-  
+
   markAllContentAsLowQuality:->
     @fetchContents (err, contents)->
       contents.forEach (item)->
         item.update {$set: isLowQuality: yes}, console.log
         item.emit 'ContentMarkedAsLowQuality', null
-  
+
   unmarkAllContentAsLowQuality:->
     @fetchContents (err, contents)->
       contents.forEach (item)->
         item.update {$set: isLowQuality: no}, console.log
         item.emit 'ContentUnmarkedAsLowQuality', null
-  
+
   @taintedAccounts = {}
   @taint =(id)->
     @taintedAccounts[id] = yes
-  
+
   @untaint =(id)->
     delete @taintedAccounts[id]
-  
+
   @isTainted =(id)->
     isTainted = @taintedAccounts[id]
     isTainted

                callback err
              else
                callback null, nonces
  
  fetchKiteChannelId: secure (client, kiteName, callback)->
    {delegate} = client.connection
    unless delegate instanceof JAccount

    else
      callback new KodingError "access denied for guest."

  oldFetchRepos = @::fetchRepos
  fetchRepos: secure (client,callback)->
    if @equals client.connection.delegate
      oldFetchRepos.call @,callback
    else
      callback new KodingError "access denied for guest."

  oldFetchDatabases = @::fetchDatabases
  fetchDatabases: secure (client,callback)->
    if @equals client.connection.delegate
      oldFetchDatabases.call @,callback
