From b5177bcfb8de3bcff3fab5d532a799be695df012 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Tue, 4 Mar 2025 11:23:33 +0300 Subject: [PATCH] docs(organization): fix `hasPermission` typo --- docs/content/docs/plugins/organization.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/plugins/organization.mdx b/docs/content/docs/plugins/organization.mdx index 2a76839c6d..7d896baef3 100644 --- a/docs/content/docs/plugins/organization.mdx +++ b/docs/content/docs/plugins/organization.mdx @@ -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: {