Project

General

Profile

« Previous | Next » 

Revision 0b430a15

Added by Marc Dequènes over 13 years ago

  • ID 0b430a152cd63dfe686d10502ac65d175b225f60

[evol/fix] finish 'root' support (closes #148)

View differences:

lib/ldap_shadows/manipulation_helper.rb
obj_hdl = self.find_raw_item_object(shadow, raw_item)
if obj_hdl
obj_klass = shadow.get_object(obj_hdl)
item = obj_klass.find(raw_item.dn)
item = obj_klass.find(is_root ? :first : raw_item.dn)
name = item.full_handle
name = "root|" + name if is_root
return {:full_handle => item.full_handle, :name => name, :item => item, :object => obj_klass, :is_root => is_root}
if item.dn == raw_item.dn
name = item.full_handle
name = "root|" + name if is_root
return {:full_handle => item.full_handle, :name => name, :item => item, :object => obj_klass, :is_root => is_root}
end
end
item_fake_hdl = raw_item.dn.to_s

Also available in: Unified diff