fix: Allow any company modify the load (v1 has no role validation yet)

This commit is contained in:
Josepablo C
2024-03-29 18:15:11 -06:00
parent f97a3ddfc7
commit 04b4be5c2b

View File

@@ -108,9 +108,6 @@ const patchLoad = async(req, res) => {
if( !data ){
throw "load data not sent";
}
if(permissions !== "role_shipper" ){
throw "You can't modify loads";
}
await Model.findByIdAndUpdate( elementId , data );
return res.send( await Model.findById( elementId ) );
}catch(error){