liquid_feedback_frontend
diff env/ldap/test.lua @ 1074:aefef1556d55
Removed usage of hstore from LDAP support
| author | bsw |
|---|---|
| date | Tue Jul 22 22:17:37 2014 +0200 (2014-07-22) |
| parents | 58f48a8a202a |
| children |
line diff
1.1 --- a/env/ldap/test.lua Fri Jul 18 23:13:19 2014 +0200 1.2 +++ b/env/ldap/test.lua Tue Jul 22 22:17:37 2014 +0200 1.3 @@ -37,8 +37,8 @@ 1.4 end 1.5 1.6 local members = Member:new_selector() 1.7 - :add_field{ "authority_data->'login' as authority_data_login" } 1.8 - :add_where{ "authority = ? AND authority_data->'uid' = ?", "ldap", uid } 1.9 + :add_field{ "authority_login" } 1.10 + :add_where{ "authority = ? AND authority_uid = ?", "ldap", uid } 1.11 :exec() 1.12 1.13 if #members < 1 then 1.14 @@ -62,7 +62,7 @@ 1.15 return 1.16 end 1.17 1.18 - test("login", login, member.authority_data_login) 1.19 + test("login", login, member.authority_login) 1.20 test("name", name, member.name) 1.21 1.22 for i, unit_id in ipairs(units_with_voting_priv) do