We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722ce8a commit 2b5bc78Copy full SHA for 2b5bc78
playground/utils/abilities.ts
@@ -6,6 +6,5 @@ export const listProducts = defineAbility({ allowGuest: true }, () => true)
6
export const createProduct = defineAbility(() => true)
7
8
export const editProduct = defineAbility((user: User, product: Product) => {
9
- console.log(user, product)
10
return user.id === product.ownerId
11
})
0 commit comments