docs: fix typo

This commit is contained in:
Bereket Engida
2024-11-07 16:52:59 +03:00
parent 9277b2a31c
commit 6ddb154c4b
+4 -1
View File
@@ -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.