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