Add deletions to changelog

This commit is contained in:
“VeLiTi”
2024-04-25 09:50:09 +02:00
parent 10e18030bb
commit 665de3436f
8 changed files with 23 additions and 0 deletions

View File

@@ -94,6 +94,9 @@ elseif ($command == 'insert' && isAllowed('products',$profile,$permission,'C') =
elseif ($command == 'delete' && isAllowed('products',$profile,$permission,'D') === 1){
$stmt = $pdo->prepare('DELETE FROM products WHERE rowID = ? '.$whereclause.'');
$stmt->execute([ $id ]);
//Add deletion to changelog
changelog($dbname,'products',$id,'Delete','Delete',$username);
} else
{
//do nothing