lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.41 vs lib/whimsy/asf/ldap.rb in whimsy-asf-0.0.42
- old
+ new
@@ -154,13 +154,13 @@
def attrs
@attrs ||= LazyHash.new {ASF.search_one(base, "uid=#{name}").first}
end
def public_name
+ return icla.name if icla
cn = [attrs['cn']].flatten.first
cn.force_encoding('utf-8') if cn.respond_to? :force_encoding
return cn if cn
- return icla.name if icla
ASF.search_archive_by_id(name)
end
def asf_member?
ASF::Member.status[name] or ASF.members.include? self