Skip to content

Commit

Permalink
feat(casl): implements basic support for ACL checks
Browse files Browse the repository at this point in the history
First version of CASL. 1.0.0 will be released after documentation is added
  • Loading branch information
stalniy committed Jul 18, 2017
1 parent c96be8e commit 8694688
Show file tree
Hide file tree
Showing 20 changed files with 3,657 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"presets": [
[
"es2015",
{
"modules": false
}
]
],
"plugins": [
"external-helpers"
]
}
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "airbnb-base",
"rules": {
"import/prefer-default-export": 0,
"no-plusplus": 0,
"comma-dangle": 0,
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"no-param-reassign": ["error", { "props": false }],
"no-mixed-operators": 0,
"no-prototype-builtins": 0
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bower_components

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
dist/

# Dependency directories
node_modules/
Expand All @@ -56,4 +57,3 @@ typings/

# dotenv environment variables file
.env

13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CASL

CASL is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access. All permissions are defined in a single location (the `Ability` class) and not duplicated across controllers, views, and database queries.

## Installation

```sh
npm install casl --save
```

## License

[MIT License](http://www.opensource.org/licenses/MIT)
Loading

0 comments on commit 8694688

Please sign in to comment.