Skip to content

Commit

Permalink
Merge pull request #607 from timopollmeier/get_vulns-fix-8.0
Browse files Browse the repository at this point in the history
Fix getting single unowned resources (8.0)
  • Loading branch information
mattmundell authored Jun 21, 2019
2 parents 508dab3 + a005e20 commit 72a4020
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 72a4020

Please sign in to comment.