forked from ddrilling/AsbCloudServer
Merge branch 'dev' of https://bitbucket.org/autodrilling/asbcloudserver into dev
Conflicts: AsbCloudInfrastructure/Services/WellService.cs
This commit is contained in:
commit
d63573c67d
@ -58,7 +58,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
|
||||
if (idCompany is null)
|
||||
if (idCompany is null || !await wellService.IsCompanyInvolvedInWellAsync(idCompany??default, idWell, token).ConfigureAwait(false))
|
||||
return NoContent();
|
||||
|
||||
var well = await wellService.GetAsync(idWell,
|
||||
|
Loading…
Reference in New Issue
Block a user