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