root / web-presentation / trunk / eneraptor-web-presentation / grails-app / conf / com / eneraptor / presentation / LoginFilters.groovy @ 88
History | View | Annotate | Download (391 Bytes)
1 |
package com.eneraptor.presentation
|
---|---|
2 |
|
3 |
class LoginFilters { |
4 |
|
5 |
def filters = {
|
6 |
edit(controller:'edit', action:'*') { |
7 |
before = { |
8 |
if(session.loggedIn != true) { |
9 |
redirect(controller:'content',action:'view') |
10 |
} |
11 |
} |
12 |
} |
13 |
firstPage(uri:'/') { |
14 |
before = { |
15 |
redirect(controller:'content',action:'view') |
16 |
} |
17 |
} |
18 |
} |
19 |
|
20 |
} |