Ignore:
Timestamp:
Aug 23, 2010, 8:23:03 PM (6 years ago)
Author:
keesvb
Message:

nimble UserBase? is somehow blocking getId and ident(), use for loop instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/RestController.groovy

    r831 r833  
    103103                List assays = []
    104104                if( params.externalStudyID ) {
    105                         def study = Study.find( "from Study as s where s.owner=? and s.code=?", [requestUser.getId(), params.externalStudyID])
    106                         if(study) study.assays.each{ assay ->
     105                        def study = Study.find( "from Study as s where s.code=?", [params.externalStudyID])
     106                        if(study && study.owner == requestUser) study.assays.each{ assay ->
    107107                                if (assay.module.url.equals(params.moduleURL)) {
    108108                                def map = ['name':assay.name, 'externalAssayID':assay.externalAssayID]
Note: See TracChangeset for help on using the changeset viewer.