File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,27 @@ can_delete_supplier {
56
56
input.auth.principal.kind == " user"
57
57
input.auth.principal[" contentgrid:admin" ] == true
58
58
}
59
+ # - input.entity is type 'invoice'
60
+ can_read_invoice {
61
+ input.auth.authenticated == true
62
+ input.auth.principal.kind == " user"
63
+ input.auth.principal[" contentgrid:admin" ] == true
64
+ }
65
+ can_create_invoice {
66
+ input.auth.authenticated == true
67
+ input.auth.principal.kind == " user"
68
+ input.auth.principal[" contentgrid:admin" ] == true
69
+ }
70
+ can_update_invoice {
71
+ input.auth.authenticated == true
72
+ input.auth.principal.kind == " user"
73
+ input.auth.principal[" contentgrid:admin" ] == true
74
+ }
75
+ can_delete_invoice {
76
+ input.auth.authenticated == true
77
+ input.auth.principal.kind == " user"
78
+ input.auth.principal[" contentgrid:admin" ] == true
79
+ }
59
80
# End policy zsn6mlr6y4tq
60
81
default allow := false
61
82
You can’t perform that action at this time.
0 commit comments