Ignore:
Timestamp:
Oct 21, 2010, 5:28:04 PM (6 years ago)
Author:
robert@…
Message:

Authentication and authorization for studies is added, according to ticket 118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrapStudies.groovy

    r948 r976  
    2121         */
    2222
    23         public static void addExampleStudies(org.nmcdsp.plugins.aaaa.SecUser owner) {
     23        public static void addExampleStudies(dbnp.authentication.SecUser owner, dbnp.authentication.SecUser otherUser ) {
    2424
    2525                // Look up the used ontologies which should be in the database by now
     
    171171                        ecCode:"2007117.c",
    172172                        startDate: Date.parse('yyyy-MM-dd','2008-01-02'),
    173                         owner: owner
     173                        owner: owner,
     174                        readers: [otherUser]
    174175                ).with { if (!validate()) { errors.each { println it} } else save()}
    175176
     
    378379                        ecCode:"unknown",
    379380                        startDate: Date.parse('yyyy-MM-dd','2008-01-14'),
    380                         owner: owner
     381                        owner: owner,
     382                        writers: [otherUser]
    381383                )
    382384                .setFieldValue( 'Description', "Human study performed at RRI; centres involved: RRI, IFR, TUM, Maastricht U." )
Note: See TracChangeset for help on using the changeset viewer.