liquid_feedback_frontend

view env/util/is_profile_field_locked.lua @ 1225:ebb3c5fa158d

Removed exhaustive GROUP BY list in Issue:get_search_selector(...) due to PRIMARY KEY (PostgreSQL 9.1 feature)
author jbe
date Tue Dec 01 16:43:54 2015 +0100 (2015-12-01)
parents 58f48a8a202a
children 32cc544d5a5b
line source
1 function util.is_profile_field_locked(member, field_name)
2 if member.authority == "ldap" then
3 if config.ldap.member.locked_profile_fields and config.ldap.member.locked_profile_fields[field_name]
4 or field_name == "login"
5 or field_name == "password"
6 then
7 return true
8 end
9 end
11 if config.locked_profile_fields[field_name] then
12 return true
13 end
15 return false
16 end

Impressum / About Us