Changeset 1921
- Timestamp:
- Jun 9, 2011, 12:48:15 PM (11 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BaseFilters.groovy
r1786 r1921 91 91 } 92 92 93 // Mapping filter for the gdtImporter-plugin 94 gdtImporter(controller:'gdtImporter', action:'*') { 95 before = { 96 if(!authenticationService.getLoggedInUser()) { 97 redirect(controller:'home') 98 return false 99 } 100 } 101 102 } 103 93 104 } 94 105 } -
trunk/grails-app/controllers/dbnp/exporter/ExporterController.groovy
r1798 r1921 30 30 import grails.plugins.springsecurity.Secured 31 31 32 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 32 33 class ExporterController { 33 34 -
trunk/grails-app/controllers/dbnp/studycapturing/AssayController.groovy
r1864 r1921 1 1 package dbnp.studycapturing 2 2 3 import grails.plugins.springsecurity.Secured 4 5 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 3 6 class AssayController { 4 7 -
trunk/grails-app/controllers/dbnp/studycapturing/FileController.groovy
r1654 r1921 16 16 17 17 import org.dbnp.gdt.FileService 18 import grails.plugins.springsecurity.Secured 18 19 20 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 19 21 class FileController { 20 22 def fileService; -
trunk/grails-app/controllers/dbnp/studycapturing/PersonAffiliationController.groovy
r1794 r1921 1 1 package dbnp.studycapturing 2 3 import grails.plugins.springsecurity.Secured 2 4 /** 3 5 * 888 888 888 888 8888888888 8888888b. 8888888888 … … 44 46 * agreed upon hundreds of times!!!! 45 47 */ 48 49 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 46 50 class PersonAffiliationController { 47 51 -
trunk/grails-app/controllers/dbnp/studycapturing/PersonController.groovy
r1794 r1921 1 1 package dbnp.studycapturing 2 3 import grails.plugins.springsecurity.Secured 2 4 /** 3 5 * 888 888 888 888 8888888888 8888888b. 8888888888 … … 44 46 * agreed upon hundreds of times!!!! 45 47 */ 48 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 46 49 class PersonController { 47 50 -
trunk/grails-app/controllers/dbnp/studycapturing/PersonRoleController.groovy
r1794 r1921 1 1 package dbnp.studycapturing 2 3 import grails.plugins.springsecurity.Secured 2 4 /** 3 5 * 888 888 888 888 8888888888 8888888b. 8888888888 … … 44 46 * agreed upon hundreds of times!!!! 45 47 */ 48 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 46 49 class PersonRoleController { 47 50 -
trunk/grails-app/controllers/dbnp/studycapturing/PublicationController.groovy
r1794 r1921 1 1 package dbnp.studycapturing 2 2 3 import grails.plugins.springsecurity.Secured 3 4 /** 4 5 * Publications controller … … 8 9 * @package studycapturing 9 10 */ 11 10 12 class PublicationController { 11 13 … … 60 62 } 61 63 64 @Secured(['IS_AUTHENTICATED_REMEMBERED']) 62 65 def create = { 63 66 def publicationInstance = new Publication() -
trunk/grails-app/views/common/_topnav.gsp
r1864 r1921 4 4 <ul class="topnav"> 5 5 <li><g:link controller="home" action="index">Home</g:link></li> 6 <sec:ifLoggedIn> 6 7 <li> 7 8 <a href="#">Create</a> … … 27 28 </ul> 28 29 </li> 30 </sec:ifLoggedIn> 29 31 <li> 30 32 <a href="#">Browse</a> … … 37 39 <li><g:link controller="study" action="list">View studies</g:link></li> 38 40 </sec:ifNotLoggedIn> 41 <sec:ifLoggedIn> 39 42 <li><a href="#">Templates</a> 40 43 <ul class="childnav"> … … 42 45 </ul> 43 46 </li> 47 </sec:ifLoggedIn> 48 <sec:ifLoggedIn> 44 49 <li><a href="#">Contacts</a> 45 50 <ul class="childnav"> … … 49 54 </ul> 50 55 </li> 56 </sec:ifLoggedIn> 51 57 <li><a href="#">Publications</a> 52 58 <ul class="childnav"> 53 59 <li><g:link controller="publication" action="list">View publications</g:link></li> 60 <sec:ifLoggedIn> 54 61 <li><g:link controller="publication" action="create">Add publication</g:link></li> 62 </sec:ifLoggedIn> 55 63 </ul> 56 64 </li> … … 63 71 </ul> 64 72 </li> 73 <sec:ifLoggedIn> 65 74 <g:if test="${ConfigurationHolder.config.modules.showInMenu && AssayModule.count()}"> 66 75 <li> … … 73 82 </li> 74 83 </g:if> 84 </sec:ifLoggedIn> 75 85 <sec:ifAllGranted roles="ROLE_ADMIN"> 76 86 <li>
Note: See TracChangeset
for help on using the changeset viewer.