[stable31] fix: provide canDownload helper for shares and use it where appropriate
#59020
+24
−4