User role property in Organization plugin
Hey,
I'm trying to setup the Organization plugin and I want to only let admin/superadmin roles be able to create new orgs using the
However, the role property doesn't seem to exist on the user type, even though I have added the admin plugin and migrated the changes on DB. But I still get this error:
I'm trying to setup the Organization plugin and I want to only let admin/superadmin roles be able to create new orgs using the
allowUserToCreateOrganizationHowever, the role property doesn't seem to exist on the user type, even though I have added the admin plugin and migrated the changes on DB. But I still get this error:
Property 'role' does not exist on type '{ id: string; name: string; emailVerified: boolean; email: string; createdAt: Date; updatedAt: Date; image?: string | null | undefined; }'.ts(2339)



