Fixed pose permission bug and the test method that didn't catch it.