Last change
on this file since 81 was
40,
checked in by gav, 16 years ago
|
Added login page and adjusted Person domain/views/controller and BootStrap?.
Add beforeInterceptor() to all controllers.
Added BaseController?.
Added adminmenubar adjust layout and css to suite.
|
-
Property svn:executable set to
*
|
File size:
381 bytes
|
Rev | Line | |
---|
[40] | 1 | abstract class BaseController { |
---|
| 2 | def auth() { |
---|
| 3 | if(!session.userId) { |
---|
| 4 | def originalRequestParams = [controller:controllerName,action:actionName] |
---|
| 5 | originalRequestParams.putAll(params) |
---|
| 6 | session.originalRequestParams = originalRequestParams |
---|
| 7 | redirect(controller:'person',action:'login') |
---|
| 8 | return false |
---|
| 9 | } |
---|
| 10 | } |
---|
| 11 | } |
---|
| 12 | |
---|
Note: See
TracBrowser
for help on using the repository browser.