Add deletions to changelog
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user