liquid_feedback_frontend
view app/main/admin/_action/member_deactivate.lua @ 1859:02c34183b6df
Fixed wrong filename in INSTALL file
author | bsw |
---|---|
date | Tue Nov 28 18:54:51 2023 +0100 (17 months ago) |
parents | 5b6082e9bd5c |
children |
line source
1 local sure = param.get("sure")
3 if sure ~= "yes" then
4 slot.select("error", function()
5 ui.tag{ content = _"You need to confirm to deactivate!" }
6 end)
7 return false
8 end
10 local id = param.get_id()
11 local clean = param.get("clean")
13 local member = Member:by_id(id)
15 member:delete()
17 slot.select("notice", function()
18 ui.tag{ content = _"Member successfully deactivated" }
19 end )