Skip to content

Commit 06ebcce

Browse files
committed
chore: change user capability check
1 parent b2a3d8e commit 06ebcce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ private function _handleDataPage() {
14211421
public function getQueryData() {
14221422
check_ajax_referer( Visualizer_Plugin::ACTION_FETCH_DB_DATA . Visualizer_Plugin::VERSION, 'security' );
14231423

1424-
if ( ! current_user_can( 'manage_options' ) ) {
1424+
if ( ! current_user_can( 'administrator' ) ) {
14251425
wp_send_json_error( array( 'msg' => __( 'Action not allowed for this user.', 'visualizer' ) ) );
14261426
}
14271427

0 commit comments

Comments
 (0)