Hello,
first of all thanks for reading my question!
When i create link to a document in share and want to get it in share it inherits permissions from an original document, but when i use search/nodes api it returns links to documents/folders regardless of permissions to original documents/folders so when users try to follow those links the get 403 error.
Can i add some condition to query so it woudnt return links to documents which user has no permission to see.
I will add pictures below:




