def get_owners(acl_path)
owners = []
path = AclPath.get_object_path(acl_path)
if path
if path.size == 4 && path[0] == 'organizations' && path[2] == 'clients'
begin
client = FFI_Yajl::Parser.parse(data.get(path), :create_additions => false)
if !client['validator']
owners |= [ path[3] ]
end
rescue
owners |= [ path[3] ]
end
if @creators[path]
@creators[path].each do |creator|
begin
client = FFI_Yajl::Parser.parse(data.get(path[0..2] + [ creator ]), :create_additions => false)
next if client['validator']
rescue
end
owners |= [ creator ]
end
end
else
owners |= @creators[path] if @creators[path]
end
unless path.size == 4 && path[0] == 'organizations' && path[2] == 'containers' && !exists?(path)
owners += superusers
end
end
owners
end