stalniy / casl-persisted-permissions-example

This example shows how to configure CASL with permissions that is stored in the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CASL roles with persisted permissions

This example shows how to configure CASL with permissions that is stored in the database. See Cookbook for details.

Installation

npm ci
npm run migrate # migrates sqlite database
npm run seed # adds default records to the database

Run

To run application:

npm start

To update permissions of a member role:

npm run allowMembersToCreateAnyArticle

About

This example shows how to configure CASL with permissions that is stored in the database

License:MIT License


Languages

Language:TypeScript 76.2%Language:JavaScript 23.8%