fix check for permissions in shipment_manifest