mirror of
https://github.com/itflow-org/itflow
synced 2026-08-16 04:25:13 +00:00
Update missing CSRF endpoint checks
This commit is contained in:
@@ -246,6 +246,8 @@ if (isset($_POST['bulk_delete_products'])) {
|
||||
|
||||
if (isset($_POST['export_products_csv'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
|
||||
//get records from database
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM products
|
||||
LEFT JOIN categories ON product_category_id = category_id
|
||||
@@ -293,6 +295,8 @@ if (isset($_POST['export_products_csv'])) {
|
||||
|
||||
if (isset($_POST['add_product_stock'])) {
|
||||
|
||||
validateCSRFToken($_POST['csrf_token']);
|
||||
|
||||
enforceUserPermission('module_sales', 2);
|
||||
|
||||
$product_id = intval($_POST['product_id']);
|
||||
|
||||
Reference in New Issue
Block a user