Skip to content

Commit 9fda85e

Browse files
committed
fix broken access control
1 parent 8bc8ddb commit 9fda85e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

admin/class-hello-asso-admin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,10 @@ function sanitizeArray($data = array()) {
456456

457457
function ha_ajax() {
458458
check_ajax_referer('helloassosecuritytoken11', 'security');
459+
460+
if ( ! is_user_logged_in() || ! current_user_can('manage_options') ) {
461+
wp_die('Vous n’avez pas les droits nécessaires pour exécuter cette action.');
462+
}
459463

460464
if (!isset($_POST['campaign']) or $_POST['campaign'] == '') {
461465
$campaign = array();

0 commit comments

Comments
 (0)