Skip to content

Commit

Permalink
admin: class-post-layout.php lower layout management cap requirements…
Browse files Browse the repository at this point in the history
… [1]

[1]: themehybrid#169
  • Loading branch information
lkraav committed Jun 9, 2019
1 parent 41149ed commit f97fef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/class-post-layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ private function setup_actions() {
*/
public function add_meta_boxes( $post_type ) {

if ( post_type_supports( $post_type, 'theme-layouts' ) && current_user_can( 'edit_theme_options' ) ) {
// @see https://github.com/justintadlock/hybrid-core/issues/169
if ( post_type_supports( $post_type, 'theme-layouts' ) && current_user_can( 'edit_pages' ) ) {

// Add meta box.
add_meta_box( 'hybrid-post-layout', esc_html__( 'Layout', 'hybrid-core' ), array( $this, 'meta_box' ), $post_type, 'side', 'default' );
Expand Down

0 comments on commit f97fef4

Please sign in to comment.