Changeset 1627 for trunk/grails-app
- Timestamp:
- Mar 11, 2011, 2:14:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BaseFilters.groovy
r1626 r1627 14 14 * $Date$ 15 15 */ 16 import org.codehaus.groovy.grails.commons.GrailsApplication 17 16 18 class BaseFilters { 17 19 def authenticationService … … 53 55 } 54 56 } 57 58 // disable all access to the query controller as this allows 59 // full access to the database 60 query(controller: 'query', action: '*') { 61 // before every execution 62 before = { 63 // only allow development 64 if (grails.util.GrailsUtil.environment != GrailsApplication.ENV_DEVELOPMENT) { 65 redirect(controller: 'home') 66 } 67 } 68 } 55 69 56 70 profiler(controller: '*', action: '*') {
Note: See TracChangeset
for help on using the changeset viewer.