WP-4736 remove unwanted permissions code