liquid_feedback_frontend

diff app/main/api/embed_initiative.lua @ 1498:50f5b8a97f91

Added support for embedding initiatives
author bsw
date Tue Mar 24 16:48:20 2020 +0100 (2020-03-24)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/app/main/api/embed_initiative.lua	Tue Mar 24 16:48:20 2020 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +if app.scopes.identification then
     1.5 +  app.session.member_id = app.access_token.member_id
     1.6 +  app.session:save()
     1.7 +  request.redirect{ external = request.get_absolute_baseurl() .. "initiative/show/" .. param.get("id") .. ".html" }
     1.8 +else
     1.9 +  slot.put("missing access token or scope")
    1.10 +end
    1.11 +

Impressum / About Us