liquid_feedback_frontend

diff env/util/is_profile_field_locked.lua @ 1071:58f48a8a202a

Imported and merged LDAP patch
author bsw
date Fri Jul 18 21:42:59 2014 +0200 (2014-07-18)
parents
children 32cc544d5a5b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/env/util/is_profile_field_locked.lua	Fri Jul 18 21:42:59 2014 +0200
     1.3 @@ -0,0 +1,16 @@
     1.4 +function util.is_profile_field_locked(member, field_name)
     1.5 +  if member.authority == "ldap" then
     1.6 +    if config.ldap.member.locked_profile_fields and config.ldap.member.locked_profile_fields[field_name] 
     1.7 +        or field_name == "login" 
     1.8 +        or field_name == "password" 
     1.9 +    then
    1.10 +      return true
    1.11 +    end
    1.12 +  end
    1.13 +  
    1.14 +  if config.locked_profile_fields[field_name] then
    1.15 +    return true
    1.16 +  end
    1.17 +
    1.18 +  return false
    1.19 +end
    1.20 \ No newline at end of file

Impressum / About Us