From 49319fa15b9bcea9af8ce490c8a5ca2bc876c1e8 Mon Sep 17 00:00:00 2001 From: Mohit Date: Sun, 23 Mar 2025 11:11:48 +0530 Subject: [PATCH] docs(fix): import name conflict in admin plugin roles example (#1948) --- docs/content/docs/plugins/admin.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/plugins/admin.mdx b/docs/content/docs/plugins/admin.mdx index eb09f7bb..90f27c00 100644 --- a/docs/content/docs/plugins/admin.mdx +++ b/docs/content/docs/plugins/admin.mdx @@ -362,7 +362,7 @@ the plugin providers easy way to define your own set of permission for each role Once you have created the roles you can pass them to the organization plugin both on the client and the server. ```ts title="auth.ts" - import { ac, admin, user } from "@/auth/permissions" + import { ac, admin as adminRole, user } from "@/auth/permissions" import { betterAuth } from "better-auth" import { admin } from "better-auth/plugins" @@ -371,7 +371,7 @@ the plugin providers easy way to define your own set of permission for each role admin({ ac: ac, roles: { - admin, + admin: adminRole, user, myCustomRole }