Changeset 22 for trunk/grails-app/services/nl
- Timestamp:
- Mar 22, 2011, 3:49:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/nl/tno/metagenomics/integration/TrashService.groovy
r20 r22 2 2 3 3 import nl.tno.metagenomics.* 4 import nl.tno.metagenomics.auth.Auth; 5 4 6 5 7 class TrashService { … … 327 329 def study = new Study( name: "Trashcan", studyToken: "trash", trashcan: true ) 328 330 study.save(); 331 } 332 333 /** 334 * Sets up authorization for the trashcan study 335 */ 336 def setupAuthorization = { study, admin -> 337 if( study && admin ) { 338 def a = Auth.createAuth(study, admin); 339 a.canRead = true; 340 a.canWrite = true; 341 a.isOwner = true; 342 a.save(); 343 } 329 344 } 330 345
Note: See TracChangeset
for help on using the changeset viewer.