Skip to content

Commit

Permalink
Update items.queries.php
Browse files Browse the repository at this point in the history
#4462

Resolves issue working with restricted users on items when otp is not in use, possibly due to aAuth based accounts
  • Loading branch information
jhumphries authored Nov 14, 2024
1 parent fae22cd commit 09c7cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -3170,7 +3170,7 @@
'SELECT i.*, n.title AS folder_title, o.enabled AS otp_for_item_enabled, o.phone_number AS otp_phone_number, o.secret AS otp_secret
FROM ' . prefixTable('items') . ' AS i
INNER JOIN ' . prefixTable('nested_tree') . ' AS n ON (i.id_tree = n.id)
INNER JOIN ' . prefixTable('items_otp') . ' AS o ON (o.item_id = i.id)
LEFT JOIN ' . prefixTable('items_otp') . ' AS o ON (o.item_id = i.id)
WHERE i.id = %i',
$inputData['id']
);
Expand Down

0 comments on commit 09c7cf5

Please sign in to comment.