Skip to content

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

License

Notifications You must be signed in to change notification settings

stalniy/casl-persisted-permissions-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published