[rql rewrite] may_be_shared_with should consider relation's scope (closes #3024730)
When a relation's scope is not the current statement, it must not be shared
(instead of comparing the statement).
Document: cubicweb-doc
Title: CubicWeb documentation
Author: Logilab
Abstract: Some base documentation for CubicWeb users and developpers
Section: Apps/Programming
Format: HTML
Index: /usr/share/doc/cubicweb-documentation/index.html
Files: /usr/share/doc/cubicweb-documentation/*.html