infisical
infisical copied to clipboard
fix(backend): resolved workspace membership invite failure
What does it do?
- The membership invite to workspace was failing because
https://github.com/Infisical/infisical/blob/main/backend/src/controllers/v1/membershipController.ts#L187
The above line expects the middleware requireWorkspaceAuth
to have workspace details. But due to not having populate query in it. Workspace id is only available causing the access to be undefined.
Why is it needed?
- This will fix workspace membership invite