Auto-redirect from app to login on 403

This commit is contained in:
Simon Brooke 2018-09-23 14:19:32 +01:00
parent 388bb3fb7d
commit 23591952b8
29 changed files with 60 additions and 40 deletions

View file

@ -87,8 +87,9 @@ ORDER BY roles.name,
roles.id
-- :name list-elector-intentions :? :*
-- :doc short form of `list-intentions-by-elector`, returning far less data,
-- for use in `youyesyet.routes.rest/get-local-data`, q.v.
-- :doc short form of `list-intentions-by-elector`, returning far less data, for use in `youyesyet.routes.rest/get-local-data`, q.v.
-- TODO: should be limited to visits in the past 24 hours, to prevent the app being
-- used to harrass NO voters. See https://github.com/simon-brooke/youyesyet/issues/58
SELECT intentions.id, intentions.option_id, visits.date
FROM intentions, visits
WHERE intentions.visit_id = visits.id