Dear BaseX Community,

is it possible to restrict user access on a per-document (or even better, per-element) basis? 
Imagine that multiple users are sharing the same database and the system needs to prevent XPath queries on the documents/elements which the current user doesn't have access to.
If not, is there any other way this functionality could be achieved using BaseX?

Thank you in advance!

Regards,
Victor