webmcp

diff demo-app/app/main/_filter_action/23_write_priv.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/demo-app/app/main/_filter_action/23_write_priv.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,7 @@
     1.4 +if 
     1.5 +  not (request.get_module() == "index" and request.get_action() == "login")
     1.6 +  and not (request.get_module() == "index" and request.get_action() == "logout")
     1.7 +then
     1.8 +  app.session.user:require_privilege("write")
     1.9 +end
    1.10 +execute.inner()

Impressum / About Us