LPS-50298 Documents and Media assets are not available when using staging

Hey Máté,

I receive this pull from support and I'm not entirely sure about this change so I'm asking your opinion.

I understand the use case they describe in the ticket https://issues.liferay.com/browse/LPS-50298 but it seems to me that we are not doing this in many other parts of the code, so I don't know if this is encapsulated in any other part of the portal.

Can you please check this out?

thx!