Skip to content

Instantly share code, notes, and snippets.

@DavidTheProgrammer
Created November 22, 2018 18:58
Show Gist options
  • Save DavidTheProgrammer/fc64597e853d92d029ceffcf61fb68c9 to your computer and use it in GitHub Desktop.
Save DavidTheProgrammer/fc64597e853d92d029ceffcf61fb68c9 to your computer and use it in GitHub Desktop.
Permissions = [
{
name: 'Home Appliances',
rules : {
read: true,
write: true,
delete: true
}
},
{
name: 'Haberdashery',
rules : {
read: true,
write: true,
delete: false
},
}
// ... Add new permissions to this collection
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment