Appeals court: Ore. logging permit violates owl protection