Commit dff34819 authored by Kyle B. Johnson's avatar Kyle B. Johnson

add capability check.

parent 9fe3ab2c
......@@ -16,6 +16,8 @@ final class NF_Admin_Menus_Licenses
public function submit_listener()
{
if( ! current_user_can( apply_filters( 'ninja_forms_admin_license_update_capabilities', 'manage_options' ) ) ) return;
if( ! isset( $_POST[ 'ninja_forms_license' ] ) || ! $_POST[ 'ninja_forms_license' ] ) return;
$key = sanitize_text_field( $_POST[ 'ninja_forms_license' ][ 'key' ] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment