Fix/query permissions

[``* `#15886` Permission to manage public queries not respected``](http://www.openproject.org/work_packages/15886)
???