1.0.0 • Published 7 years ago

aurelia-acl v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

aurelia-acl

Gitter

ACL for your aurelia application.

Simple and small. Set permissions, and then use the provided tools to verify them.

Installation

Jspm

Run jspm i aurelia-acl from your project root.

And add following to the bundles.dist.aurelia.includes section of build/bundles.js:

  "aurelia-acl"

If the installation results in having forks, try resolving them by running:

jspm inspect --forks
jspm resolve --only registry:package-name@version

Configuration

The most basic way to configure your permissions is by passing them as an object literal. More configuration options can be found on the documentation;

aurelia.use
   .plugin('aurelia-acl', {
     chat: ['read', 'post'],
     statistics: true // grants access to all statistics
   });

Usage

<template>
  <chatbox allowed="{chat: 'read'}"></chatbox>
</template>

The chatbox is only visible when acl is granted for chat.read.

Documentation

You can find detailed documentation, including installation instructions over at the aurelia-acl documentation.

The changelog provides you with information about important changes made over releases.

Contributing

Report bugs, request features, send pull requests for fixes and features and read the CONTRIBUTING.md

License

MIT