#IF(#Shop.LoginRequired AND (NOT #Session.User OR #Session.User.IsAnonymous OR #Shop.ID != #Session.User.Parent.Parent.ID))
#LOCAL("ShopPath",#Shop.Path)
#IF(#INPUT.ViewAction EQ "ViewLostPassword" OR
#INPUT.ViewAction EQ "ViewChangeLostPassword" OR
#INPUT.ViewAction EQ "ViewContactForm" OR
#INPUT.ViewAction EQ "SF-ViewLogin" OR
#Path EQ #ShopPath."/Categories/TermsAndConditions" OR
#Path EQ #ShopPath."/Categories/PrivacyPolicy" OR
#Path EQ #ShopPath."/Categories/Imprint")
#INCLUDE("Content")
#ELSE
#IF(#Shop.CustomerMustLoginMessage)
#Shop.CustomerMustLoginMessage[0]
#ELSE
{PleaseLogin}
#ENDIF
#ENDIF
#ENDLOCAL
#ELSE
#INCLUDE("Content")
#ENDIF