Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel committed Feb 8, 2024
1 parent ecd1912 commit bde44d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/authz/src/opa/template/mockData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Action, Criterion, Policy, Then } from '@narval/authz-shared'
import { Action, Criterion, EntityType, Policy, Then, ValueOperators } from '@narval/authz-shared'
import { Intents } from '@narval/transaction-request-intent'

export const examplePermitPolicy: Policy = {
Expand Down Expand Up @@ -35,21 +35,21 @@ export const examplePermitPolicy: Policy = {
},
{
criterion: Criterion.CHECK_INTENT_AMOUNT,
args: { currency: '*', operator: 'lte', value: '1000000000000000000' }
args: { currency: '*', operator: ValueOperators.LESS_THAN_OR_EQUAL, value: '1000000000000000000' }
},
{
criterion: Criterion.CHECK_APPROVALS,
args: [
{
approvalCount: 2,
countPrincipal: false,
approvalEntityType: 'Narval::User',
approvalEntityType: EntityType.User,
entityIds: ['aa@narval.xyz', 'bb@narval.xyz']
},
{
approvalCount: 1,
countPrincipal: false,
approvalEntityType: 'Narval::UserRole',
approvalEntityType: EntityType.UserRole,
entityIds: ['admin']
}
]
Expand Down

0 comments on commit bde44d3

Please sign in to comment.