Skip to content

Commit

Permalink
allow authorized users to avoid chemical ban list for tree builder
Browse files Browse the repository at this point in the history
  • Loading branch information
mefortunato committed Aug 13, 2019
1 parent 7bf4f0e commit f459e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askcos/askcos_site/main/views/retro.py
Expand Up @@ -365,7 +365,7 @@ def ajax_start_retro_mcts_celery(request):

smiles = request.GET.get('smiles', None)

if smiles in BANNED_SMILES:
if is_banned(request, smiles):
data['html_trees'] = 'ASKCOS does not provide results for compounds on restricted lists such as the CWC and DEA schedules'
return JsonResponse(data)

Expand Down

0 comments on commit f459e13

Please sign in to comment.