         callback err
         return  unless group.slug
 
-        JGroup = require '../models/group'
+        JGroup = require '../group'
         JGroup.one { slug : group.slug }, (err, group_) =>
           return callback err, this  if err or not group_
 


  setAccess: permit
    advanced: [
      { permission: 'update own stack template' }
      { permission: 'update stack template' }
    ]


  generateStack: permit

    advanced: [
      { permission: 'update own stack template', validateWith: Validators.own }
      { permission: 'update stack template' }
    ]

