docs(organization): fix hasPermission typo

This commit is contained in:
Bereket Engida
2025-03-04 11:23:33 +03:00
parent 227df06374
commit b5177bcfb8

View File

@@ -778,11 +778,11 @@ the plugin providers easy way to define your own set of permission for each role
**Has Permission**:
You can use the `organizationHasPermission` action provided by the `api` to check the permission of the user.
You can use the `hasPermission` action provided by the `api` to check the permission of the user.
```ts title="api.ts"
import { auth } from "@/auth";
auth.api.organizationHasPermission({
auth.api.hasPermission({
headers: await headers(),
body: {
permission: {