Kodandram granted bail