=== Drona Role Based Form Access for Contact Form 7 ===
Contributors: kuldeep1805
Tags: contact form 7, cf7 roles, user role access, cfdb7, form permissions
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control which user roles can access specific Contact Form 7 forms and restrict CFDB7 submissions visibility accordingly.

== Description ==

**Drona Role Based Form Access for Contact Form 7** allows administrators to assign specific Contact Form 7 forms to different WordPress user roles. It also ensures that users can only view CFDB7 entries related to the forms assigned to their role.

This plugin is useful for organizations where different teams manage different forms and should not see each other’s submissions.

= Key Features =

* Assign Contact Form 7 forms to individual user roles
* Restrict CFDB7 entries based on assigned form access
* Administrators always retain full access
* Secure data handling using proper sanitization and escaping
* Lightweight and does not affect frontend performance
* No third-party API connections or external services

= How It Works =

1. The administrator assigns a Contact Form 7 form to a specific user role.
2. When users with that role view CFDB7 entries, they only see submissions from the assigned form.
3. Users without an assigned form cannot see any CFDB7 entries.
4. Administrators are never restricted.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Ensure **Contact Form 7** and **CFDB7** plugins are installed and active.
4. Go to **CF7 Form by Role** in the WordPress admin menu.
5. Assign forms to roles and click **Save Assignments**.

== Frequently Asked Questions ==

= Does this plugin affect frontend form submission? =  
No. This plugin only controls backend visibility of CFDB7 entries.

= What happens if a role has no form assigned? =  
Users with that role will not be able to see any CFDB7 entries.

= Do administrators have restrictions? =  
No. Administrators always have full access.

= Is any data sent to external servers? =  
No. This plugin works entirely within your WordPress installation.

== Screenshots ==

1. Settings page where forms are assigned to user roles
2. CFDB7 entries filtered based on assigned form

== Changelog ==

= 1.0.0 =
* Initial release
* Role-based Contact Form 7 access control
* CFDB7 entry visibility restriction
* Secure nonce validation and sanitization
