Ignore:
Timestamp:
Jan 26, 2011, 5:08:25 PM (9 years ago)
Author:
robert@…
Message:
  • Created tests for the synchronization and trash
  • Improved synchronizationservice and trash
  • Put authorization checks in several pages
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/nl/tno/metagenomics/AssaySampleController.groovy

    r4 r7  
    1414                }
    1515               
    16                 [assaySample: assaySample]
     16                if (!assaySample.assay.study.canRead( session.user ) ) {
     17                        flash.error = "You don't have the right authorizaton to access sample " + assaySample.sample.name
     18                        redirect(controller: 'study')
     19                        return null
     20                }
     21
     22               
     23                [assaySample: assaySample, entityType: params.entityType]
    1724        }
    1825}
Note: See TracChangeset for help on using the changeset viewer.