Implement support for filtering `/tools/find` and `/dicom-web/studies` based on what resources the user has access to
Requirements:
- Users with access to the server should always be able to reach the
/tools/find
and/dicom-web/studies
interfaces. - Wrapping views should exist which executes scoped queries (unless the user has access to a global
query
permission) for the server. - The wrapping view instance will need to be able to map the user making the request (identified via the token) to a profile with user ID and group IDs. Needed for the query which will scope the request.
- If the user has a global
query
permission, then the request will not be scoped. - On the
/tools/find
view (for users with a globalquery
permission), there will need to be the ability to by-pass the wrapping view and exercise the Orthanc "native" view. This is currently used in some instances to detect ghost entries in the cache and remove them.