forked from enviPath/enviPy
PES Adjustments, Check is User is in enviPath Entra Group
This commit is contained in:
@ -889,7 +889,7 @@ def create_package_compound(
|
||||
from bayer.models import PESCompound
|
||||
|
||||
try:
|
||||
pes_data = fetch_pes(request, c.pesLink)
|
||||
pes_data = fetch_pes(request, c.pesLink, request.user)
|
||||
except ValueError as e:
|
||||
return 400, {"message": f"Could not fetch PES data for {c.pesLink}"}
|
||||
|
||||
@ -2014,7 +2014,7 @@ def add_pathway_node(request, package_uuid, pathway_uuid, n: Form[CreateNode]):
|
||||
from bayer.models import PESCompound
|
||||
|
||||
try:
|
||||
pes_data = fetch_pes(request, n.pesLink)
|
||||
pes_data = fetch_pes(request, n.pesLink, request.user)
|
||||
except ValueError as e:
|
||||
return 400, {"message": f"Could not fetch PES data for {n.pesLink}"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user