liquid_feedback_frontend
diff app/main/admin/_action/member_update.lua @ 581:c676054cb0bc
Some improvements to admin member section
author | bsw |
---|---|
date | Wed Jun 20 13:31:09 2012 +0200 (2012-06-20) |
parents | 3e4f6534bb15 |
children | 6fc640d87c8f |
line diff
1.1 --- a/app/main/admin/_action/member_update.lua Wed Jun 20 13:30:47 2012 +0200 1.2 +++ b/app/main/admin/_action/member_update.lua Wed Jun 20 13:31:09 2012 +0200 1.3 @@ -2,11 +2,7 @@ 1.4 1.5 local member = Member:by_id(id) or Member:new() 1.6 1.7 -param.update(member, "identification", "notify_email", "admin") 1.8 - 1.9 -if param.get("invite_member", atom.boolean) then 1.10 - member:send_invitation() 1.11 -end 1.12 +param.update(member, "identification", "notify_email", "admin", "locked") 1.13 1.14 local err = member:try_save() 1.15 1.16 @@ -43,6 +39,10 @@ 1.17 end 1.18 end 1.19 1.20 +if not member.activated and param.get("invite_member", atom.boolean) then 1.21 + member:send_invitation() 1.22 +end 1.23 + 1.24 if id then 1.25 slot.put_into("notice", _"Member successfully updated") 1.26 else