liquid_feedback_frontend

diff app/main/_filter/21_auth.lua @ 988:81bde33c2256

Added support for regular delegation check, fixed css for pagination
author bsw
date Sat Apr 20 18:40:34 2013 +0200 (2013-04-20)
parents 403e8c211592
children 5a712ec1a7f1
line diff
     1.1 --- a/app/main/_filter/21_auth.lua	Wed Mar 20 09:26:11 2013 +0100
     1.2 +++ b/app/main/_filter/21_auth.lua	Sat Apr 20 18:40:34 2013 +0200
     1.3 @@ -89,6 +89,19 @@
     1.4    trace.debug("Member locked.")
     1.5    request.redirect{ module = 'index', view = 'login' }
     1.6  else
     1.7 +  if config.check_delegations_interval_hard and app.session.member_id and app.session.needs_delegation_check 
     1.8 +    and not (module == "admin" or (module == "index" and (
     1.9 +      view == "check_delegations" 
    1.10 +      or action == "check_delegations" 
    1.11 +      or action == "logout"
    1.12 +      or view == "about"
    1.13 +      or view == "usage_terms"
    1.14 +      or action == "set_lang")
    1.15 +    ))
    1.16 +    and not (module == "member_image" and view == "show") then
    1.17 +    request.redirect{ module = 'index', view = 'check_delegations' }
    1.18 +    return
    1.19 +  end
    1.20    if auth_needed then
    1.21      trace.debug("Authentication accepted.")
    1.22    else

Impressum / About Us