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

Bug: Creating comment while on an onshore installation #103

Open
FredrikMWold opened this issue Jul 10, 2023 · 0 comments
Open

Bug: Creating comment while on an onshore installation #103

FredrikMWold opened this issue Jul 10, 2023 · 0 comments
Assignees

Comments

@FredrikMWold
Copy link
Contributor

FredrikMWold commented Jul 10, 2023

When a user is trying to create a comment while viewing a shipment from the onshore installation.
The operation fails if the user does not have access to the offshore installation that the shipment was created at.

Users should be able to comment on shipments from offshore installations they don't have access if they have access to the receiver installation.

Endpoint: https://api-chemcom-api-prod.radix.equinor.com/api/Shipment/Onshore/comment

Payload:

{
    "shipmentId": "4b6b1feb-f463-40a0-8a69-ef7c92ee451d",
    "senderId": "b10fc741-ebe3-45c1-bc70-8eca5ba5cf03",
    "comment": "Test"
}

Response:

{
    "error": [
        "You do not have access to save from this plant"
    ]
}
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

No branches or pull requests

2 participants