掲示板

Portlets in Private pages still viewable if user doesn't have role

8年前 に Jordan Miles によって更新されました。

Portlets in Private pages still viewable if user doesn't have role

Junior Member 投稿: 27 参加年月日: 15/01/22 最新の投稿
We've run upon an issue with private pages that we can't figure out. We allow users to add portlets if they have the correct role with the correct permission. What I noticed is that, if I took all of the permissions away from a portlet (for instance, Asset Publisher) it looks like it takes it away from the "Add" list, but if the portlet is already on the page, the user can still see it whether they have permission or not. Is there a way to fix this? We will run into issues if a user has a portlet on their private page and we decide to take the view permission away from that portlet. They'll still see it if it's already on their page. As I understand it, a user is an administrator of their site by default, so we may be looking at this the wrong way. I've also noticed that, by default when the portlet is added, Power User is given "View" by default for that instance. I've tried both removing all of the permissions from the portlet in Control Panel -> Plugin Configuration -> Permissions, as well as taking the role that has view permissions away from the user. Any help would be greatly appreciated.
thumbnail
8年前 に Tomas Polesovsky によって更新されました。

RE: Portlets in Private pages still viewable if user doesn't have role

Liferay Master 投稿: 676 参加年月日: 09/02/13 最新の投稿
Hi Jordan,

probably a late answer, but maybe it helps others if they meet the same conditions.

When portlet is placed on a page, permissions are copied into the portlet instance and are not inherited, therefore can be changed only at that level. You need to go to the page and open permissions screen from the portlet actions and change the permissions there.

This was a design decision to allow portal administrators to be able to configure permissions specifically for each portlet instance on page.
7年前 に Julien Parmentier によって更新されました。

RE: Portlets in Private pages still viewable if user doesn't have role

New Member 投稿: 2 参加年月日: 16/09/05 最新の投稿
Hi,

I'm having the same problem with Liferay 7.0 GA2 / GA3
I've created a web content portlet on a private page with an admin user. Then removed any "view" permission from the web content instance.
Then, when i log in with a user role only, that user can still see the web content portlet on his private page.

Everything work fine on public pages => portlet view disappear when i remove permission from user.

Did you fine any solution to your problem ? Am i missing something ?

Regards.
7年前 に need help によって更新されました。

RE: Portlets in Private pages still viewable if user doesn't have role

New Member 投稿: 2 参加年月日: 16/09/07 最新の投稿
I am facing the same issue also in Liferay 7 GA 3.

I have a public login page and few private pages accessible when logged.
I am removing view and all other permissions for user role on a portlet and on a web content in a private page. But when I am logged in with an user, I can still see the portlet and the web content.

Thank you for your help.
thumbnail
7年前 に Aravinth Kumar によって更新されました。

RE: Portlets in Private pages still viewable if user doesn't have role

Regular Member 投稿: 152 参加年月日: 13/06/26 最新の投稿
Hi,
I too tried.And I am facing same issue. I removed all the permissions for web content in a private page still other users are able to view the web content.
thumbnail
7年前 に Mohammad Azharuddin によって更新されました。

RE: Portlets in Private pages still viewable if user doesn't have role

Expert 投稿: 492 参加年月日: 12/09/17 最新の投稿
Remove the permission from guest and user Role as well