X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Fsamples%2Fviews.py;h=b0a61f42117db2c1758b933041e64f0cb2377cb4;hp=f42c8bce7d53984ed227c696d487898a533ff755;hb=45bea53077b4e46618320beee76682d441e0a1c7;hpb=f22eb99f314ed48ceb0062dffe4f8f25c7cf09dd diff --git a/htsworkflow/frontend/samples/views.py b/htsworkflow/frontend/samples/views.py index f42c8bc..b0a61f4 100644 --- a/htsworkflow/frontend/samples/views.py +++ b/htsworkflow/frontend/samples/views.py @@ -7,6 +7,7 @@ try: except ImportError, e: import simplejson as json +from htsworkflow.frontend.auth import require_api_key from htsworkflow.frontend.experiments.models import FlowCell from htsworkflow.frontend.samples.changelist import ChangeList from htsworkflow.frontend.samples.models import Library @@ -491,11 +492,11 @@ def library_dict(library_id): info['library_type'] = lib.library_type.name return info -@login_required def library_json(request, library_id): """ Return a json formatted library dictionary """ + require_api_key(request) # what validation should we do on library_id? lib = library_dict(library_id)