Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backend): resolved workspace membership invite failure #180

Merged

Conversation

akhilmhdh
Copy link
Member

What does it do?

  1. 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?

  1. This will fix workspace membership invite

@akhilmhdh akhilmhdh force-pushed the fix/failed-workspace-membership-invite branch from 28955bd to c653f80 Compare December 27, 2022 17:52
Copy link
Collaborator

@vmatsiiako vmatsiiako left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes a lot of sense! Thank you for fixing this :)

@vmatsiiako vmatsiiako merged commit 4c43bda into Infisical:main Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants