Skip to content

Commit

Permalink
refactor: [torrust#615] policy file allows admin user to perform any …
Browse files Browse the repository at this point in the history
…action
  • Loading branch information
mario-nt committed Jun 11, 2024
1 parent 33f8044 commit 67b979b
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions casbin/policy.csv
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
p, alice, data1, read
p, bob, data2, write
p, data2_admin, data2, read
p, data2_admin, data2, write
p, admin, A
p, testuser, AddCategory
p, admin, AddCategory
p, admin, ACTION::DeleteCategory


g, alice, data2_admins

g, alice, data2_admin
p, true, AddCategory
p, true, DeleteCategory
p, true, GetSettings
p, true, GetSettingsSecret
p, true, AddTag
p, true, DeleteTag

0 comments on commit 67b979b

Please sign in to comment.