From 502a8ea90a5dd61a84330067435a90a15812aa0b Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 14 Jun 2016 10:31:43 +0800 Subject: [PATCH] Typo --- UDLdap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UDLdap.py b/UDLdap.py index cb7dfa4..f07ba36 100644 --- a/UDLdap.py +++ b/UDLdap.py @@ -88,7 +88,7 @@ class Account: return self['accountStatus'] == 'active' and self.numkeys() != 0 def is_guest_account(self): - return supplementaryGid in self and 'guest' in self['supplementaryGid'] + return 'supplementaryGid' in self and 'guest' in self['supplementaryGid'] def latitude_dec(self, anonymized=False): return userdir_ldap.DecDegree(self['latitude'], anonymized) -- 2.20.1