liquid_feedback_frontend

diff app/main/member/_action/update.lua @ 1071:58f48a8a202a

Imported and merged LDAP patch
author bsw
date Fri Jul 18 21:42:59 2014 +0200 (2014-07-18)
parents 701a5cf6b067
children 32cc544d5a5b
line diff
     1.1 --- a/app/main/member/_action/update.lua	Thu Jul 17 23:38:35 2014 +0200
     1.2 +++ b/app/main/member/_action/update.lua	Fri Jul 18 21:42:59 2014 +0200
     1.3 @@ -17,12 +17,12 @@
     1.4  local update_args = { app.session.member }
     1.5  
     1.6  for i, field in ipairs(fields) do
     1.7 -  if not config.locked_profile_fields[field] then
     1.8 +  if not util.is_profile_field_locked(app.session.member, field) then
     1.9      param.update(app.session.member, field)
    1.10    end
    1.11  end
    1.12  
    1.13 -if not config.locked_profile_fields.statement then
    1.14 +if not util.is_profile_field_locked(app.session.member, "statement") then
    1.15    local formatting_engine = param.get("formatting_engine") or config.enforce_formatting_engine
    1.16  
    1.17    local formatting_engine_valid = false
    1.18 @@ -47,7 +47,7 @@
    1.19  
    1.20  end
    1.21  
    1.22 -if not config.locked_profile_fields.birthday then
    1.23 +if not util.is_profile_field_locked(app.session.member, "birthday") then
    1.24    if tostring(app.session.member.birthday) == "invalid_date" then
    1.25      app.session.member.birthday = nil
    1.26      slot.put_into("error", _"Date format is not valid. Please use following format: YYYY-MM-DD")

Impressum / About Us