LPS-39688 Check if site is local or remote staged and is the live site

This check must be performed before the actual group is set to the live group (if isStagingGroup) to check permissions.