Created
June 20, 2020 16:39
-
-
Save andersonkxiass/5cdfc2d689e0cc54cc0c66684c5f918c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"users": [ | |
{ | |
"name": "alice", | |
"roles": [ | |
"admin" | |
] | |
}, | |
{ | |
"name": "bob", | |
"roles": [ | |
"basic" | |
] | |
} | |
], | |
"roles": [ | |
{ | |
"role": "admin", | |
"permissions": [ | |
{ | |
"resource": "*", | |
"action": "*" | |
} | |
] | |
}, | |
{ | |
"role": "basic", | |
"permissions": [ | |
{ | |
"resource": "product", | |
"action": "write" | |
}, | |
{ | |
"resource": "product", | |
"action": "read" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment