While trying to execute a Solr query without PR, I have noticed this exception:
Looking at the code, it seems that indeed we have this check in SecureQueryExecutorManager#execute().
This is bad, IMO, because it would require every extension that adds a new query language to have PR in order to use it.
We should either:
- let rights check be handled by each QueryExecutor
- have a common results interface for which rights can be checked in the upper level (like in SecureQueryExecutorManager)