Add deletions to changelog
This commit is contained in:
@@ -80,6 +80,9 @@ elseif ($command == 'insert' && !isset($post_content['delete']) && isAllowed('hi
|
||||
elseif ($command == 'delete' && isAllowed('history',$profile,$permission,'D') === 1){
|
||||
$stmt = $pdo->prepare('DELETE FROM history WHERE rowID = ?');
|
||||
$stmt->execute([ $id ]);
|
||||
|
||||
//Add deletion to changelog
|
||||
changelog($dbname,'history',$id,'Delete','Delete',$username);
|
||||
} else
|
||||
{
|
||||
//do nothing
|
||||
|
||||
Reference in New Issue
Block a user