Plugin Directory

Changeset 2604235 for shapepress-dsgvo


Ignore:
Timestamp:
09/24/2021 11:34:45 AM (5 years ago)
Author:
legalweb
Message:

added admin check on registering ajax method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shapepress-dsgvo/trunk/includes/class-sp-dsgvo-integration.php

    r2604177 r2604235  
    2121        $self = new $class();
    2222
    23         if(method_exists($self, 'viewSubmit')){
     23        if(method_exists($self, 'viewSubmit') && current_user_can('administrator')){
    2424            $action = $class::action();
    2525            add_action("wp_ajax_{$action}", array($self, 'viewSubmit'));
Note: See TracChangeset for help on using the changeset viewer.