Changeset 39 for trunk/grails-app/controllers
- Timestamp:
- Oct 29, 2009, 4:06:49 PM (13 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/BaseController.groovy
r37 r39 56 56 def action = params.action; 57 57 58 /* check if the user is Authorized to call this method 59 if (this.authorizationService.isAuthorized(controller,action)) { 60 // user is not authorized to use this functionality 61 printf("authorized call to action: %s->%s(...)\n",this.class.name,action); 62 } else { 63 // user is not authorized to use this controller + method 64 printf("!! unauthorized call to action: %s-->%s(...)\n",this.class.name,action); 65 66 // redirect to error page 67 flash['error'] = sprintf("unauthorized call to action: %s::%s\n",controller,action); 68 redirect(controller:'error',action:'index'); 69 } 70 */ 58 printf("calling %s->%s(...)\n",this.class.name,action); 71 59 } 72 60 } -
trunk/grails-app/controllers/StudyController.groovy
r35 r39 1 1 2 2 3 class StudyController {3 class StudyController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) }
Note: See TracChangeset
for help on using the changeset viewer.