liquid_feedback_frontend
annotate app/main/member/_action/remove_application.lua @ 1761:7df91db759ce
Removed invalid href from javascript button
| author | bsw | 
|---|---|
| date | Fri Oct 15 09:57:42 2021 +0200 (2021-10-15) | 
| parents | 32cc544d5a5b | 
| children | 
| rev | line source | 
|---|---|
| bsw/jbe@1309 | 1 local id = param.get_id() | 
| bsw/jbe@1309 | 2 | 
| bsw/jbe@1309 | 3 local application = MemberApplication:by_id(id) | 
| bsw/jbe@1309 | 4 | 
| bsw/jbe@1309 | 5 if application.member_id ~= app.session.member_id then | 
| bsw/jbe@1309 | 6 return | 
| bsw/jbe@1309 | 7 end | 
| bsw/jbe@1309 | 8 | 
| bsw/jbe@1309 | 9 application:destroy() | 
| bsw/jbe@1309 | 10 |