cubicweb #3024730 bad rql generated on read security with some case of relation sharing in snippets [validation pending]

if you're interested, the test case is the clearest explanation :)

prioritynormal
typebug
done in3.17.4
load0.250
load left0.000
closed by#e6fe77dbcfdf [rql rewrite] may_be_shared_with should consider relation's scope (closes #3024730)
patch[rql rewrite] may_be_shared_with should consider relation's scope instead of statement to tell if it may be shared or not. Closes #3024730 [applied]