We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bc8ddb commit 9fda85eCopy full SHA for 9fda85e
1 file changed
admin/class-hello-asso-admin.php
@@ -456,6 +456,10 @@ function sanitizeArray($data = array()) {
456
457
function ha_ajax() {
458
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
+ }
463
464
if (!isset($_POST['campaign']) or $_POST['campaign'] == '') {
465
$campaign = array();
0 commit comments