Skip to content

Commit

Permalink
allow editors to access big hero template fields
Browse files Browse the repository at this point in the history
  • Loading branch information
umac10 committed Apr 1, 2020
1 parent 417fc3b commit f9ad150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/class.uw-page-attributes-meta-box.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function page_template_dropdown( $default = '' , $post) {
}
echo "</div>";
if ($default === "templates/template-big-hero.php" || $default === "templates/template-small-hero.php") {
if (is_super_admin()) {
if (current_user_can('administrator') || current_user_can('editor')) {
$banner = get_post_meta($post->ID, "banner", true);
wp_nonce_field( 'banner_nonce' , 'banner_name' );

Expand Down

0 comments on commit f9ad150

Please sign in to comment.