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

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