留言板

Permission check issue in Liferay 7

kiran kumar,修改在7 年前。

Permission check issue in Liferay 7

Junior Member 帖子: 62 加入日期: 14-7-4 最近的帖子
Hi Team,

I have created portllet in Liferay OSGI, now facing issure in when in integration permission.

boolean hasAddPermission = CustomePortletpermission.contains(
permissionChecker, scopeGroupId, "ADD_EMPLOYEE");
boolean hasConfigurePermission = CustomePortletpermission.contains(
permissionChecker, scopeGroupId, ActionKeys.PERMISSIONS);

I m getting error in permission checker error.

i have implemented

@Component(
immediate = true,
property = {"resource.name=" + CustomePortletpermission.RESOURCE_NAME},


service = ResourcePermissionChecker.class


Still i m not able resolve the permission checker issue.
thumbnail
Olaf Kock,修改在7 年前。

RE: Permission check issue in Liferay 7

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
kiran kumar:
I m getting error in permission checker error.


It would help to either see your CustomPermissionsChecker's code or know what error you get. Or both.

Actually: Scratch the "or" - please post both
kiran kumar,修改在7 年前。

RE: Permission check issue in Liferay 7

Junior Member 帖子: 62 加入日期: 14-7-4 最近的帖子
Hi Oak,

I have Created "CustomePortletpermission" for resource permission and EmpoyeePermission for portlet permission and i m using check and contains method.

Now is that same implementation for liferay dxp or diffrent.

i have changed packages as well.

Please suggest me.
thumbnail
Olaf Kock,修改在7 年前。

RE: Permission check issue in Liferay 7

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
kiran kumar:
I have Created "CustomePortletpermission" for resource permission and EmpoyeePermission for portlet permission and i m using check and contains method.


It would help to either see your CustomPermissionsChecker's code or know what error you get. Or both.

Actually: Scratch the "or" - please post both