You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Get Product Stock Details by ID" endpoint does not currently account for the organizationId, which is required by the Organization Ownership Guard. As a result, the feature fails when attempting to retrieve product stock details.
Steps to Reproduce
create a new user and get the user's organization id
create a product in the user's organization id and retrieve the product id
try to get the stock details of the product you have created in the organization by its ID
Expected Behavior
The get product stock details by Id is meant to give a successful response with the correct product details given that the org and product IDs are valid.
Bug Description
The "Get Product Stock Details by ID" endpoint does not currently account for the organizationId, which is required by the Organization Ownership Guard. As a result, the feature fails when attempting to retrieve product stock details.
Steps to Reproduce
Expected Behavior
The get product stock details by Id is meant to give a successful response with the correct product details given that the org and product IDs are valid.
Current Behavior
The endpoint currently gives this error response
Screenshots/Logs
Environment
Possible Solution
Restructure the endpoint to include the product's organization id to be used by the guard.
Additional Context
The text was updated successfully, but these errors were encountered: