]> _ Git - couzy.git/commitdiff
wait #5680
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Jan 2023 20:11:41 +0000 (21:11 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 12 Jan 2023 20:11:41 +0000 (21:11 +0100)
cesaretleonie.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php

index 45a1cea27154763a1068b4fb2d011e74f8caaa08..63ade60739c841002c5cc6e709a86756ffade641 100644 (file)
@@ -75,7 +75,7 @@ class Yves_Couzy
                //if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;
 
                // if our current user can't edit this post, bail
-               if( !current_user_can( 'edit_post' ) ) return;
+               if( !current_user_can( 'edit_posts' ) ) return;
 
                // Make sure your data is set before trying to save it
                /*if( isset( $_POST['yc_page_sidebar_1'] ) && ! empty( $_POST['yc_page_sidebar_1'] ) ) {