Skip to content

Commit

Permalink
Merge pull request #143 from uweb/big-hero-template-fields
Browse files Browse the repository at this point in the history
Allow editors to access Big Hero template fields
  • Loading branch information
lcaple authored Apr 3, 2020
2 parents 417fc3b + f9ad150 commit 481a387
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 481a387

Please sign in to comment.