root / web-presentation / trunk / eneraptor-web-presentation / grails-app / conf / com / eneraptor / presentation / LoginFilters.groovy @ 88
History | View | Annotate | Download (391 Bytes)
1 | 86 | alexbesir | 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 | 88 | alexbesir | } |
13 | firstPage(uri:'/') { |
||
14 | before = { |
||
15 | redirect(controller:'content',action:'view') |
||
16 | } |
||
17 | } |
||
18 | 86 | alexbesir | } |
19 | |||
20 | } |