fpm-plugin-rbac-fs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dev
src
test
.babelrc
.gitignore
.npmignore
CHANGELOG.md
README.md
package.json
rbac.simple.json
yarn.lock

README.md

FPM-PLUGIN-RBAC-FS

A Rbac Plugin For FPM With FileSystem

Install

yarn add fpm-plugin-rbac-fs

Useage

//get rbac of a roleid
// fpm.rbac.getRbac(roleid:Number) => RBAC
const rbac = await fpm.rbacFactory.getRbac(obsInfo.role_id)
//get acl from rbac instance
RBAC.getAcl()
RBAC.getRole()