webmcp

view demo-app/app/main/_filter_action/23_write_priv.lua @ 324:1c3ba14bd679

Root __init.lua function must not set global variables without _G now; Documentation for "_" function added
author jbe
date Mon Mar 23 22:41:40 2015 +0100 (2015-03-23)
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