webmcp

view demo-app/app/main/_filter_action/23_write_priv.lua @ 34:e19b0b5c46ba

allow execptions an slot.reset_all()

this is usefull when an error is detected deep into a view where you want redirect
to something usefull, but still save some slots like notice and error slots
author Daniel Poelzleithner <poelzi@poelzi.org>
date Wed Oct 06 16:14:33 2010 +0200 (2010-10-06)
parents 9fdfb27f8e67
children
line source
1 if
2 not (request.get_module() == "index" and request.get_action() == "login")
3 and not (request.get_module() == "index" and request.get_action() == "logout")
4 then
5 app.session.user:require_privilege("write")
6 end
7 execute.inner()

Impressum / About Us