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 organization
2 Replies
bekacru
bekacru3w ago
it does accept organizationId
Kazz
KazzOP3w ago
Oh my bad, the typescript autocomplete isn't showing it and it wasn't mentioned in the logs so I assumed it only accepted permissions. Thanks for the help! ^

Did you find this page helpful?