LPS-27013

Fix - Add check if the page is staging page. Verify also that user have permissions to see the layout. There is one use case that does not result 'good' result. See the comments at code

https://github.com/sammso/liferay-portal/commit/850eaa001eae43e236164686e223f520113d7519