bsw@1071: function util.is_profile_field_locked(member, field_name) bsw@1071: if member.authority == "ldap" then bsw@1071: if config.ldap.member.locked_profile_fields and config.ldap.member.locked_profile_fields[field_name] bsw@1071: or field_name == "login" bsw@1071: or field_name == "password" bsw@1071: then bsw@1071: return true bsw@1071: end bsw@1071: end bsw@1071: bsw@1071: if config.locked_profile_fields[field_name] then bsw@1071: return true bsw@1071: end bsw@1071: bsw@1071: return false bsw@1071: end