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.
2 parents 74812cc + 245e828 commit 56079c2Copy full SHA for 56079c2
includes/admin/class-admin.php
@@ -170,9 +170,17 @@ public function export_forms() {
170
* @return void
171
*/
172
public function export_form_entries() {
173
+ if ( ! current_user_can( 'administrator' ) ) {
174
+ wp_die( esc_html__( 'You do not have permission to export entries', 'weforms' ) );
175
+ }
176
+
177
+ if ( ! wp_verify_nonce( $_REQUEST['_wpnonce'], 'weforms-export-entries' ) ) {
178
+ wp_die( esc_html__( 'Invalid nonce', 'weforms' ) );
179
180
181
$form_id = isset( $_REQUEST['selected_forms'] ) ? absint( $_REQUEST['selected_forms'] ) : 0;
182
- if ( !$form_id ) {
183
+ if ( ! $form_id ) {
184
return;
185
}
186
0 commit comments