Search code examples
liferaylifecycle

Liferay page permissions are not working in site template?


I have created a site template with three pages (P1,P2,P3) and I have created a "site" and it render from the site template. Site admin only access the three pages(P1,P2,P3) and normal user can view the three pages(Site Membership). But how to restrict the normal user only view two pages (P1 and P3). I set the permissions at the "Page level" but site member also view the page "P2".

Some one please help me how to restrict the Page "P2".


Solution

  • I guess you have the following problem. You want to set the permissions at the page level over P2. Before doing anything, You have something like this:

    Default permissions

    Then, you changed the permission to SITE MEMBER over P2, unchecking the permission view

    Unchecking view in site member

    But when you go to your site, all SITE MEMBERS can see the page 2.

    Also You need to uncheck the permission for Guest (unauthenticated users).

    unchecking view Guest

    After that, the site admin will be able to see P1,P2,P3 but site members only will be able to see P1,P3