From: Vincent Vanwaelscappel Date: Thu, 12 Jan 2023 20:11:41 +0000 (+0100) Subject: wait #5680 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6e066285c300f550571cd1c5658098eb673616fc;p=couzy.git wait #5680 --- diff --git a/cesaretleonie.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php b/cesaretleonie.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php index 45a1cea2..63ade607 100644 --- a/cesaretleonie.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php +++ b/cesaretleonie.fr/wp-content/plugins/yves-couzy/admin/yves-couzy.php @@ -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'] ) ) {