Skip to content

Commit 039dcbd

Browse files
committed
UR-4637 Fix - Download PDF Button Divi module throws fatal error when render_callback() returns null
1 parent 9199a4c commit 039dcbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

includes/shortcodes/class-ur-shortcode-my-account.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public static function output( $atts ) {
132132
$user_id = get_current_user_id();
133133
$form_id = get_user_meta( $user_id, 'ur_form_id', true );
134134

135-
if ( ! empty( $form_id ) ) {
135+
if ( ! empty( $form_id ) || current_user_can( 'manage_options' ) ) {
136136

137137
/**
138138
* Action to handles for enqueuing scripts for User Registration my Account page.

0 commit comments

Comments
 (0)