             content = { script: content.script }
 
         else
-          err = "Type is not supported for now."
+          err = 'Type is not supported for now.'
 
     err = new KodingError err  if err?
     return [err, content, contentSum]
 
 
-  checkSlug = (slug, callback)->
-
-    JProvisioner.count { slug }, (err, res)->
+  checkSlug = (slug, callback) ->
+
+    JProvisioner.count { slug }, (err, res) ->
       return callback err  if err?
       if not res? or res > 0
       then callback new KodingError \

      # { permission: 'update provisioner' }
    ]

    success: (client, data, callback)->

      {content, slug, label, type} = data

      unless content or label or slug
        return callback new KodingError "Nothing to update"

      fieldsToUpdate = { "meta.modifiedAt" : new Date }

      if content?


      # { permission: 'delete provisioner' }
    ]

    success: (client, callback) -> @remove callback


  setAccess: permit
