Handle private resource access

I don't know if this is the best approach, but it's working as expected.
This is related to: https://github.com/nuams/dkan/issues/125