From 9a87cfb024865a58e78fb7256936691b36645aac Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 7 Apr 2025 12:14:08 +0200 Subject: [PATCH] FIX handling permissions for the screen export des donnees --- includes/export-datas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/export-datas.php b/includes/export-datas.php index 043d1e8..5e7e1aa 100644 --- a/includes/export-datas.php +++ b/includes/export-datas.php @@ -8,7 +8,7 @@ function export_datas_page_in_menu() add_menu_page( 'Export de données', // page Title 'Export', // link text - 'edit_posts', // user capabilities + 'export_artisans_datas', // user capabilities - changé pour n'autoriser que les éditeurs et supérieurs 'export_datas', // page slug 'export_datas_page_callback', // this function prints the page content 'dashicons-external', // icon (from Dashicons for example)