Skip to content

Commit

Permalink
Merge pull request #17 from ashish493/master
Browse files Browse the repository at this point in the history
feat: Added policy file for different roles
  • Loading branch information
hsluoyz authored Jul 23, 2021
2 parents b3f1f84 + df82315 commit 38851ff
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion config/policy.csv
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
p, /validate, GET
# admin have all priviliges
p, admin, *, *

# anyone could perform read-only operation
p, *, *, get
p, *, *, list

# member could perform write operations
p, member, /validate, create
p, member, /validate, update
p, member, /validate, patch
p, member, /validate, delete

0 comments on commit 38851ff

Please sign in to comment.