Changeset 1059

Show
Ignore:
Timestamp:
03-11-10 14:51:34 (3 years ago)
Author:
t.w.abma@…
Message:

- only show own studies

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/importer/ImporterController.groovy

    r1058 r1059  
    3535@Secured(['IS_AUTHENTICATED_REMEMBERED']) 
    3636class ImporterController { 
    37     def ImporterService     
     37    def ImporterService 
     38    def AuthenticationService 
    3839 
    3940    /** 
     
    4849 
    4950    def simpleWizard = { 
    50         render(view:"index_simple", model:[studies:Study.list(), entities: grailsApplication.config.gscf.domain.importableEntities]) 
     51        render(view:"index_simple", model:[studies:Study.findAllWhere(owner:AuthenticationService.getLoggedInUser()), entities: grailsApplication.config.gscf.domain.importableEntities]) 
    5152    } 
    5253