Managing users capabilities to see recent entries [Visual Form Builder]
-
Any WP role can see the “Recent Visual Form Builder Entries” on the dashboard.
This is sensitive, because subscribers and other low level custom roles can see the email accounts of contacts received through the plugin.
Any suggestion on how to avoid this without hacking the code as I did by changing the add_dashboard_widget() function to:
public function add_dashboard_widget() { if (current_user_can('administrator')) { wp_add_dashboard_widget( 'vfb-dashboard', __( 'Recent Visual Form Builder Entries', 'visual-form-builder' ), array( &$this, 'dashboard_widget' ), array( &$this, 'dashboard_widget_control' ) ); } }
Thank you for any help on this.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Managing users capabilities to see recent entries [Visual Form Builder]’ is closed to new replies.