Skip to content

Commit

Permalink
Merge pull request #606 from timopollmeier/get_vulns-fix
Browse files Browse the repository at this point in the history
Fix getting single unowned resources
  • Loading branch information
mattmundell authored Jun 21, 2019
2 parents 6a5b875 + 8b8124d commit 8afe2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -5197,7 +5197,7 @@ init_get_iterator2_with (iterator_t* iterator, const char *type,
{
resource = 0;
}
else if (get->id && owned && (current_credentials.uuid == NULL))
else if (get->id && (owned == 0 || (current_credentials.uuid == NULL)))
{
gchar *quoted_uuid = sql_quote (get->id);
switch (sql_int64 (&resource,
Expand Down

0 comments on commit 8afe2ad

Please sign in to comment.