From 5b499084389797111f573fa803fff5f1c39eae8b Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 2 Mar 2026 17:20:00 -0500 Subject: [PATCH] Vendors: Add missing CSRF, need to update the permissions as a vendor can be client or global and permissions need to be set based off if the referal url has client_id or not --- agent/modals/vendor/vendor_add.php | 1 + .../vendor/vendor_add_from_template.php | 2 +- agent/modals/vendor/vendor_contact_add.php | 3 +- agent/modals/vendor/vendor_contact_edit.php | 1 + agent/modals/vendor/vendor_edit.php | 1 + agent/modals/vendor/vendor_export.php | 1 + agent/post/vendor.php | 36 ++++++++++++------ agent/post/vendor_contact.php | 38 +++++++++++++------ agent/vendors.php | 12 +++--- 9 files changed, 65 insertions(+), 30 deletions(-) diff --git a/agent/modals/vendor/vendor_add.php b/agent/modals/vendor/vendor_add.php index ff2317b3..b2109b77 100644 --- a/agent/modals/vendor/vendor_add.php +++ b/agent/modals/vendor/vendor_add.php @@ -14,6 +14,7 @@ ob_start();
+ - + +
- \ No newline at end of file + diff --git a/agent/modals/vendor/vendor_contact_edit.php b/agent/modals/vendor/vendor_contact_edit.php index d6883ae4..a3319cb8 100644 --- a/agent/modals/vendor/vendor_contact_edit.php +++ b/agent/modals/vendor/vendor_contact_edit.php @@ -8,6 +8,7 @@
+ + +