Organization haPermission and checkRolePermissions help
Shouldn't
auth.api.hasPermission
body include organizationId
/ organizationSlug
? This is so that if we don't want to use the activeOrganiztionId
since hasPermission
only defaults to that.
Why am I not using activeOrganizationId?
I'm using the organization slug in the URL instead and checking if it exists, found it better than making the user wait around 500ms more to set the new active organization2 Replies