留言板

com.liferay.portal.NoSuchResourceActionException

thumbnail
devi nimmagadda,修改在12 年前。

com.liferay.portal.NoSuchResourceActionException

Regular Member 帖子: 109 加入日期: 10-12-9 最近的帖子
Hi all,

can anybody know about this exception.

I want to add the user in my application.

I am getting this exception when user adding. That is

I have login with power user and I am adding new user in my application. But I got the exception : NoSuchResourceActionException.


How can i resolve this. could you please help me...
thumbnail
Sagar A Vyas,修改在12 年前。

RE: com.liferay.portal.NoSuchResourceActionException

Liferay Master 帖子: 679 加入日期: 09-4-17 最近的帖子
Hi Devi,

Did you try with Admin credential ?

I wonder how power user can add the user is there any extra role and permission has given ?

Thanks,
Sagar Vyas
thumbnail
devi nimmagadda,修改在12 年前。

RE: com.liferay.portal.NoSuchResourceActionException

Regular Member 帖子: 109 加入日期: 10-12-9 最近的帖子
hi,

Thanks for your reply...


I have given a new role to this.

I want to set permission to this new role.

ResourcePermissionServiceUtil.addResourcePermission(
themeDisplay.getScopeGroupId(), companyId, selResource, scope,
String.valueOf(role.getCompanyId()), roleId, actionId);

I am trying to use this code, but ResourceActionUtil is not getting in plugin portlet.

How can i set resource permission == Add_user to this new role..

can u suggest me..