Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
perm.acl.filter-saveexisting.test.js
perm.acl.filters.test.js
perm.acl.properties.test.js
perm.acl.remove.test.js
perm.acl.test.js
perm.app.js
perm.test.js
readme.js

readme.js

/* Copyright (c) 2013-2014 Richard Rodger, MIT License */
"use strict";


var seneca  = require('seneca')()
seneca.use('echo')


seneca.use( '..', {act:[
  {role:'echo'},
]})


seneca.ready(function(){

  seneca.act({role:'echo', foo:'bar', perm$:{allow:true}},function(err,out){
    console.log('foo='+out.foo)
  })

  seneca.act({role:'echo', foo:'bar', perm$:{allow:false}},function(err,out){
    console.log(err)
  })

})
Something went wrong with that request. Please try again.