Hi Victor,
as you correctly noted, user restrictions are only defined on database level.
If the number of users/groups is limited, and if the permissions of the documents don't change that frequently, we usually recommend users and customers to store documents in multiple database instances. Note that "databases" are pretty light-weight data structures in BaseX. For instance, you can access, query and update several databases with a single XQuery expression.
Hope this helps, Christian ___________________________
On Tue, Feb 28, 2012 at 9:50 PM, Victor Petrov victor_petrov@harvard.edu wrote:
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