Simple permission control in a few steps
Based on Basement
http://basement.alipay.com
Dashboard out of the box
$ npm i brole-dashboard-cli -g
$ brole init AwesomeDashboard
// egg exports.foo = function * () { const workId = '109072' const permission = 'home_view' yield this.app.brole.User.isAllowed(workId, permission) // => true or false }
By Randy Lu
brole