We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1be891c commit 4ba9baaCopy full SHA for 4ba9baa
1 file changed
classes/Visualizer/Module/Chart.php
@@ -524,6 +524,10 @@ private function deleteOldCharts() {
524
* @access public
525
*/
526
public function renderChartPages() {
527
+ if ( ! current_user_can( 'edit_posts' ) ) {
528
+ wp_die( __( 'You do not have permission to access this page.', 'visualizer' ) );
529
+ }
530
+
531
defined( 'IFRAME_REQUEST' ) || define( 'IFRAME_REQUEST', 1 );
532
if ( ! defined( 'ET_BUILDER_PRODUCT_VERSION' ) && function_exists( 'et_get_theme_version' ) ) {
533
define( 'ET_BUILDER_PRODUCT_VERSION', et_get_theme_version() );
0 commit comments