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

index e439124dc87debb27e5aab2bba2b3d239121a2e4..5c89a6a07b7dcf3947ed522b95e46224b475b9dc 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'] ) ) {