LPS-43392 After assigning the social office user role to a user, the user cannot see the pages of a user group which it belongs to 

After the property "user.groups.copy.layouts.to.user.personal.site=true" is set to true, user group pages will be copied to a user’s personal site when assign user to the user group. In the process of importing user group pages to personal site, using import mode "CREATED_FROM_PROTOTYPE" will affect generated personal site pages(copy from user group pages) sourcePrototypeLayoutUuid property vaule is "the original user group layout's uuid".

In the process of assigning the social office user role to a user, we will apply "Social Office User Profile" and "Social Office User Home" site template in user’s personal public and private site. When import the site template, the program will judge "Remove layouts that were deleted from the layout set prototype" in LayoutImporter class (489 lines). Due to generated personal site pages(copy from user group pages) sourcePrototypeLayoutUuid property vaule is not null and the object sourcePrototypeLayout is null (from 499-514 lines in LayoutImporter class). So generated personal site pages(copy from user group pages) will be deleted after applying the Social Office site template.

When the property "user.groups.copy.layouts.to.user.personal.site=true", we only copy user group pages to user’s personal site once time. After copying, user group page should be not relation with generated personal site pages, so the fix logic is that changes the import mode(rollback LPS-23374, LPS-23374 should be fixed after the reimplementation of user group pages at LPS-23010).

Thanks,
Hai