We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2a3d8e commit 06ebcceCopy full SHA for 06ebcce
classes/Visualizer/Module/Chart.php
@@ -1421,7 +1421,7 @@ private function _handleDataPage() {
1421
public function getQueryData() {
1422
check_ajax_referer( Visualizer_Plugin::ACTION_FETCH_DB_DATA . Visualizer_Plugin::VERSION, 'security' );
1423
1424
- if ( ! current_user_can( 'manage_options' ) ) {
+ if ( ! current_user_can( 'administrator' ) ) {
1425
wp_send_json_error( array( 'msg' => __( 'Action not allowed for this user.', 'visualizer' ) ) );
1426
}
1427
0 commit comments