Show
Ignore:
Timestamp:
23-08-10 20:23:03 (4 years ago)
Author:
keesvb
Message:

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

Files:
1 modified

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]