@ SecuredAction public Result index ( ) { if ( logger . isDebugEnabled ( ) ) { logger . debug ( "access granted to index" ) ; } DemoUser user = ( DemoUser ) ctx ( ) . args . get ( SecureSocial . USER_KEY ) ; return ok ( index . render ( user , SecureSocial . env ( ) ) ) ; }
This action only gets called if the user is logged in .