liquid_feedback_frontend

view app/main/agent/_action/accept.lua @ 1856:7d60ede7005e

Allow to hide password reset and login recover feature
author bsw
date Sat Sep 17 21:30:43 2022 +0200 (2022-09-17)
parents 87878d24d7a8
children
line source
1 local controlled_id = param.get("controlled_id")
3 local agent = Agent:by_pk(controlled_id, app.session.member_id)
5 if not agent then
6 return false
7 end
9 if agent.accepted ~= nil then
10 return false
11 end
13 if param.get("rejected") then
14 agent.accepted = false
15 elseif param.get("accepted") then
16 agent.accepted = true
17 else
18 return false
19 end
21 agent:save()

Impressum / About Us