     memberRoles     : ['admin','moderator','member','guest']
     permissions     :
       'grant permissions'                 : []
+      'list members'                      : ['member', 'moderator']
       'create groups'                     : ['moderator']
       'edit groups'                       : ['moderator']
       'edit own groups'                   : ['member', 'moderator']

          }

  fetchMyRoles: secure (client, callback)->
    console.log 'do we get here?'
    {delegate} = client.connection
    Relationship.someData {
      sourceId: delegate.getId()
      targetId: @getId()
    }, {as:1}, (err, cursor)->
      console.log arguments
      if err then callback err
      else
        cursor.toArray (err, arr)->
          if err then callback err
          else callback null, (doc.as for doc in arr)

  createRole: permit 'grant permissions'
    success:(client, formData, callback)->

        'one','create','each','byRelevance','someWithRelationship'
        '__resetAllGroups', 'fetchMyMemberships'
      ]
      instance      : [
        'join','leave','modify','fetchPermissions', 'createRole'
        'updatePermissions', 'fetchMembers', 'fetchRoles', 'fetchMyRoles'
        'fetchUserRoles'
      ]
    schema          :
      title         :
        type        : String
