Skip to content

Instantly share code, notes, and snippets.

@darahayes
Created May 22, 2020 08:52
Show Gist options
  • Save darahayes/614bc5be036bd13fe555afeeb4d1226c to your computer and use it in GitHub Desktop.
Save darahayes/614bc5be036bd13fe555afeeb4d1226c to your computer and use it in GitHub Desktop.
const authConfig = {
Task: {
create: {},
read: {},
update: { roles: ["admin"] },
delete: { roles: ["admin"] }
},
Report: {
create: { roles: ["admin"] },
read: {},
update: { roles: ["admin"] },
delete: { roles: ["admin"] }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment