liquid_feedback_frontend
diff app/main/member/show_tab.lua @ 203:5e35add677ee
Added support for member.locked and account expiry mechanism. Small corrections.
| author | bsw |
|---|---|
| date | Tue Jan 25 13:43:46 2011 +0100 (2011-01-25) |
| parents | f62c61bd912c |
| children | bfd8d88f72fc |
line diff
1.1 --- a/app/main/member/show_tab.lua Mon Nov 08 15:49:23 2010 +0100 1.2 +++ b/app/main/member/show_tab.lua Tue Jan 25 13:43:46 2011 +0100 1.3 @@ -46,16 +46,12 @@ 1.4 local broken_delegations = Delegation:new_selector() 1.5 :join("member", nil, "delegation.trustee_id = member.id") 1.6 :add_where{"delegation.truster_id = ?", member.id} 1.7 - if config.delegation_warning_time and config.last_login_enabled then 1.8 - broken_delegations:add_where{"member.active = 'f' OR (member.last_login IS NULL OR age(member.last_login) > ?::interval)", config.delegation_warning_time} 1.9 - else 1.10 - broken_delegations:add_where{"member.active = 'f'"} 1.11 - end 1.12 + :add_where{"member.active = 'f' OR (member.last_login_public IS NULL OR age(member.last_login) > ?::interval)", config.delegation_warning_time } 1.13 1.14 if broken_delegations:count() > 0 then 1.15 tabs[#tabs+1] = { 1.16 class = "red", 1.17 - name = "problem_delegations", 1.18 + name = "broken_delegations", 1.19 label = _"Delegation problems" .. " (" .. tostring(broken_delegations:count()) .. ")", 1.20 icon = { static = "icons/16/table_go.png" }, 1.21 module = "delegation",