   @trait __dirname, '../traits/flaggable'
 
   JAppStorage = require './appstorage'
-  
+
   @getFlagRole = 'content'
 
   {ObjectId, Register, secure, race, dash} = require 'bongo'
   {Relationship} = jraphical
   @share()
-  Experience = 
+  Experience =
     company           : String
     website           : String
     position          : String

    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

      callback new KodingError "access denied for guest."

  setClientId:(@clientId)->

  getFullName:->
    {profile} = @data
    profile.firstName+' '+profile.lastName

  fetchStorage: secure (client, options, callback)->
    account = @
    unless @equals client.connection.delegate
      return callback "Attempt to access unauthorized application storage"

    {appId, version} = options
    @fetchAppStorage {}, {targetOptions:query:{appId}}, (error, storage)->
      if error then callback error
