From 6ddb154c4bce5967cbefeb006fc66b550b042bf5 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Thu, 7 Nov 2024 16:52:59 +0300 Subject: [PATCH] docs: fix typo --- docs/content/docs/plugins/organization.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/plugins/organization.mdx b/docs/content/docs/plugins/organization.mdx index 98591c6c56..bb4c7f76e2 100644 --- a/docs/content/docs/plugins/organization.mdx +++ b/docs/content/docs/plugins/organization.mdx @@ -361,6 +361,8 @@ client.organization.getInvitation({ }) ``` +## Members + ### Remove Member To remove you can use `organization.removeMember` @@ -385,12 +387,13 @@ await client.organization.updateMemberRole({ ### Get Active Member -To get the current member of the organization you can use the `organization.getCurrentMember` function. This function will return the current member of the organization. +To get the current member of the organization you can use the `organization.getActiveMember` function. This function will return the current member of the organization. ```ts title="client.ts" const member = await client.organization.getActiveMember() ``` + ## Access Control The organization plugin providers a very flexible access control system. You can control the access of the user based on the role they have in the organization. You can define your own set of permissions based on the role of the user.