How to disable Control-panel's “My Account” Portlet for only Power-user role

强颜欢笑 提交于 2019-12-25 01:42:54

问题


I want to disable (remove access) for Control Panel > My Account portlet for Power-user role or for my custom user.

It should display for Administrator role. Is there any portal properties or some other configuration?

Or do we need to achieve something through coding?


回答1:


For this I would suggest you do the following:

1) Go into the Control Panel
2) Go to "Roles" under the "Portal" section
3) Go to "Actions" -> "Define Permissions" for the Power User role (or any other role you want to change)
4) Click "Delete" next to all permissions you want to remove from that role.

Changing them in portal-ext.properties will change them for all users, so this is your best approach.




回答2:


I am not sure if the procedure in the other answer works. I doubt it for the version 6.0.6.

Another approach is to remove the My Accounts portlet from Liferay. To do so, open the file liferay-portlet.xml in <Liferay>/webapps/ROOT/WEB-INF/ and remove the portlet entry with the portlet-name 2.

Note: If you do so: no user will be able to view this portlet. But administrators are able to view the Users portlet and they can change their account at that location.



来源:https://stackoverflow.com/questions/11261469/how-to-disable-control-panels-my-account-portlet-for-only-power-user-role

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!