Changeset 833


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

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

Location:
trunk/grails-app
Files:
2 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]
  • trunk/grails-app/domain/dbnp/user/User.groovy

    r832 r833  
    1010        }
    1111
    12         long getId() {
    13                 return id;
     12        long giveId() {
     13                //Long val = this.id;
     14                return (long)ident();
    1415        }
    1516
Note: See TracChangeset for help on using the changeset viewer.