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