Skip to content

Commit f889690

Browse files
committed
feat: Update string vs integer test examples
1 parent 27d7594 commit f889690

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

examples/string_vs_integer_model.conf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
r = sub, obj, act, exp
33

44
[policy_definition]
5-
p = sub, obj, act, exp
5+
p = sub, obj, act
66

77
[role_definition]
88
g = _, _
@@ -12,4 +12,3 @@ e = some(where (p.eft == allow))
1212

1313
[matchers]
1414
m = g(r.sub, p.sub) && r.obj == p.obj && r.act == p.act && r.exp == "1"
15-
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
p, reader, data, read, 1
2-
g, alice, reader
1+
p, reader, data, read
2+
p, writer, data, write
3+
p, admin, data, delete
4+
g, alice, reader
5+
g, alice, writer
6+
g, bob, reader
7+
g, cathy, admin

0 commit comments

Comments
 (0)