LIMS-1447: Don't allow shipping of red samples#929
Conversation
I've moved some of the logic out of the template file and into the JS file, so the page can now change as soon as the model changes. So hopefully that is no longer possible. |
|
Should there be a check in place in the backend too? I can still create a shipment by sending POST requests or manually navigating to |
|
It's hard to bloick on the backend as it may go to the shipping service, impossible to block everything anyway, so I've added a check on I've also put in some code to encourage users to declare a safety level if they haven't already (eg CSV uploads), by hiding some buttons (with a message to tell them what to do). |
* LIMS-1447: Don't allow shipping of red samples (#929) * LIMS-1664: Improvements to registered dewar and container pages (#927) * LIMS-1636: Make LDAP server ID field configurable (#934) * LIMS-1699: Show confirmation dialog if a user creates a plate that is not full (#924) * LIMS-1713: Allow sm beamlines to use mx Create Container page (#932) * LIMS-1770: Fix download of attachments on saxs and xpdf beamlines (#944)

JIRA ticket: LIMS-1447
Summary:
Users should not be allowed to ship red samples/shipments through Synchweb. Also, red shipments should already have a red session scheduled (and the same for yellow).
Changes:
To test: