Brole

Simple permission control in a few steps

Based on Basement

http://basement.alipay.com

Dashboard out of the box

CLI Tool

$ npm i brole-dashboard-cli -g

 

$ brole init AwesomeDashboard

Super simple API

// egg

exports.foo = function * () {
  const workId = '109072'
  const permission = 'home_view'
  yield this.app.brole.User.isAllowed(workId, permission) // => true or false
}

brole

By Randy Lu

brole

brole

  • 1,257