我想在Liferay 6.0.5上为某些用户组授予权限,以便他们可以访问控制面板的某些部分,例如允许他们更改电子邮件。我该怎么做?
答案 0 :(得分:7)
默认情况下,通常会启用更改自己的电子邮件地址。请参阅portal.properties中的此条目(或在portal-ext.properties中覆盖)
#
# Input a list of comma delimited user types who can edit their own fields.
# Valid types are "administrator", "user-with-mx", and "user-without-mx".
#
# Set a value of "administrator" if an administrator can edit the specified
# field. An administrator is anyone who has the Administrator role.
#
# Set a value of "user-with-mx" if a user who has an email address that
# matches the company mail suffix can edit the specified field.
#
# Set a value of "user-without-mx" if a user who does not have an email
# address that matches the company mail suffix can edit the specified field.
#
# Set all three values if all users can edit the specified field. Set a
# combination of the three values if only a combination of the users can
# edit the specified field.
#
field.editable.com.liferay.portal.model.User.screenName=administrator,user-with-mx,user-without-mx
field.editable.com.liferay.portal.model.User.emailAddress=administrator,user-with-mx,user-without-mx
对于其他控制面板内容:创建自定义角色,选择“定义权限”,然后在“控制面板”部分的选择框中,您将找到名为“在ControlPanel中访问”的权限。当然,您还需要允许访问的部分的其他权限(例如,请参阅选择框中的“内容”部分)