themehybrid / hybrid-core

Official repository for the Hybrid Core WordPress development framework.
GNU General Public License v2.0
687 stars 143 forks source link

4.0: `Hybrid_Admin_Post_Layout::add_meta_boxes()` should allow Editor role #169

Open lkraav opened 5 years ago

lkraav commented 5 years ago

https://github.com/justintadlock/hybrid-core/blob/4.0/admin/class-post-layout.php#L78 hardcodes current_user_can( 'edit_theme_options' ) conditional.

This should be relaxed, because Editor role should be able to choose post-specific layouts, but stay out of theme options in general.

Your thoughts?