Skip to content

Commit

Permalink
Merge pull request #2657 from department-of-veterans-affairs/dev
Browse files Browse the repository at this point in the history
Dev->VAPO
  • Loading branch information
Pelentan authored Jan 16, 2025
2 parents c7e3c44 + ae51d9b commit c314114
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions LEAF_Nexus/sources/Employee.php
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,15 @@ public function enableAccount($empUID)
throw new Exception('Administrator access required to enable accounts');
}

$vars = array(':empUID' => $empUID);
$vars = array(':empUID' => $empUID,
':time' => 0);
$sql = 'UPDATE`employee`
SET `deleted` = :time
WHERE `empUID` = :empUID';

$this->db->prepared_query($sql, $vars);

/* $vars = array(':empUID' => $empUID);
$sql = 'SELECT `userName`
FROM `employee`
WHERE `empUID` = :empUID';
Expand All @@ -1105,7 +1113,7 @@ public function enableAccount($empUID)
$this->enableEmployee($res[0]['userName']);
$this->enableAllTables($res[0]['userName']);
$this->enableAllPortalTables($res[0]['userName']);
$this->enableAllPortalTables($res[0]['userName']); */

return true;
}
Expand Down

0 comments on commit c314114

Please sign in to comment.