Changeset 39 for trunk/grails-app/controllers/BaseController.groovy
- Timestamp:
- Oct 29, 2009, 4:06:49 PM (13 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.