掲示板

Portlet Permissions not removed

11年前 に Ashwin Kumar によって更新されました。

Portlet Permissions not removed

New Member 投稿: 4 参加年月日: 13/01/17 最新の投稿
If I define portlet specific permissions like below, I can see these permissions in the UI when I am creating the role

<resource-action-mapping>
<portlet-resource>
<portlet-name>sample-permissions</portlet-name>
<permissions>
<supports>
<action-key>ADD_SOMETHING</action-key>
<action-key>CONFIGURATION</action-key>
<action-key>VIEW</action-key>
</supports>
<community-defaults>
<action-key>VIEW</action-key>
</community-defaults>
<guest-defaults>
<action-key>VIEW</action-key>
</guest-defaults>
<guest-unsupported />
</permissions>
</portlet-resource>



But when I am removing the permission from xml, permissions still exists in UI and database.

Am I doing something wrong ?

Any help would be appreciated.
thanks!
11年前 に Octavio Sánchez によって更新されました。

RE: Portlet Permissions not removed

Junior Member 投稿: 80 参加年月日: 09/03/31 最新の投稿
I'm not sure but I think that once created further redeploies won't delete those premissions you'd created.
11年前 に Ashwin Kumar によって更新されました。

RE: Portlet Permissions not removed

New Member 投稿: 4 参加年月日: 13/01/17 最新の投稿
Hi Octavio Sánchez,

Yes Once permissions are created , they wont be removed from database and UI even when we remove them from xml file.

Is this expected behaviour or a bug ?
11年前 に Octavio Sánchez によって更新されました。

RE: Portlet Permissions not removed

Junior Member 投稿: 80 参加年月日: 09/03/31 最新の投稿
Hi Ashwin,

I'm not part of liferay staff but in my opinion isn't a bug, it's the Liferay expected behaviour.