liquid_feedback_frontend

annotate env/util/is_profile_field_locked.lua @ 1075:a85f7ea61ef6

Fixed error until first run of lf_update
author bsw
date Tue Jul 22 22:23:01 2014 +0200 (2014-07-22)
parents 58f48a8a202a
children 32cc544d5a5b
rev   line source
bsw@1071 1 function util.is_profile_field_locked(member, field_name)
bsw@1071 2 if member.authority == "ldap" then
bsw@1071 3 if config.ldap.member.locked_profile_fields and config.ldap.member.locked_profile_fields[field_name]
bsw@1071 4 or field_name == "login"
bsw@1071 5 or field_name == "password"
bsw@1071 6 then
bsw@1071 7 return true
bsw@1071 8 end
bsw@1071 9 end
bsw@1071 10
bsw@1071 11 if config.locked_profile_fields[field_name] then
bsw@1071 12 return true
bsw@1071 13 end
bsw@1071 14
bsw@1071 15 return false
bsw@1071 16 end

Impressum / About Us