LPS-51594 Simplify permission checking.