Changeset 39
- Timestamp:
- Oct 29, 2009, 4:06:49 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 deleted
- 3 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) } -
trunk/grails-app/views/index.gsp
r38 r39 42 42 43 43 <span style="border: 1px solid red;"> 44 Temporary login information: Administrator ( admin / admiN123! )User ( user / useR123! )44 use these credentials to log in: Administrator ( admin / admiN123! ), User ( user / useR123! ) 45 45 </span> 46 46 </body>
Note: See TracChangeset
for help on using the changeset viewer.