Skip to content
Snippets Groups Projects
Commit b9cb684b authored by apriestman's avatar apriestman
Browse files

Don't return non-active hosts for person

parent 11b904c1
No related branches found
No related tags found
No related merge requests found
...@@ -269,6 +269,7 @@ public Person createPerson(String name) throws TskCoreException { ...@@ -269,6 +269,7 @@ public Person createPerson(String name) throws TskCoreException {
*/ */
public List<Host> getHostsForPerson(Person person) throws TskCoreException { public List<Host> getHostsForPerson(Person person) throws TskCoreException {
String whereStatement = (person == null) ? " WHERE person_id IS NULL " : " WHERE person_id = " + person.getId(); String whereStatement = (person == null) ? " WHERE person_id IS NULL " : " WHERE person_id = " + person.getId();
whereStatement += " AND db_status = " + Host.HostDbStatus.ACTIVE.getId();
String queryString = "SELECT * FROM tsk_hosts " + whereStatement; String queryString = "SELECT * FROM tsk_hosts " + whereStatement;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment