       kallback()
 
 
-  createRole: permit 'grant permissions',
-    success:(client, formData, callback)->
-      JGroupRole = require './role'
-      JGroupRole.create
-        title           : formData.title
-        isConfigureable : formData.isConfigureable or no
-      , callback
-
-  # addCustomRole: permit 'grant permissions',
-  #   success:(client,formData,callback)->
-  #     @createRole client,formData, (err,role)=>
-  #       console.log err,role
-  #       unless err
-  #         @addRole role, callback
-  #       else
-  #         callback err, null
-
   createMembershipPolicy:(requestType, queue, callback)->
     [callback, queue] = [queue, callback]  unless callback
     queue ?= []

        callback clientError, no


  # saveInviteMessage: permit 'send invitations',
  #   success: (client, messageType, message, callback=->)->
  #     @fetchMembershipPolicy (err, policy)=>
  #       return callback err  if err
  #       return callback new KodingError "No policy found"  unless policy
  #       set = {}
  #       set["communications.#{messageType}"] = message
  #       policy.update $set: set, callback


  isMember: (account, callback)->
    return callback new Error "No account found!"  unless account
    selector =


        daisy queue


  fetchOrCountInvitations: permit 'send invitations',
    success: (client, type, method, options, callback)->
