Correct permissions when using permission projections (rebased onto dev_5_0)



This is the same as gh-2844 but rebased onto dev_5_0.

----

Fix for: https://trac.openmicroscopy.org.uk/ome/ticket/12474
This is a temporary measure until this bug can be properly fixed on the
server side