Skip to content

Commit

Permalink
refactor: [#615] policy file allows admin user to perform any action
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Jul 3, 2024
1 parent d9ea173 commit 7a39d0b
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 7a39d0b

Please sign in to comment.