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

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