when bail is matter of right or discretion of court