Forums de discussion

Permission check issue in Liferay 7

kiran kumar, modifié il y a 7 années.

Permission check issue in Liferay 7

Junior Member Publications: 62 Date d'inscription: 04/07/14 Publications récentes
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, modifié il y a 7 années.

RE: Permission check issue in Liferay 7

Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
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, modifié il y a 7 années.

RE: Permission check issue in Liferay 7

Junior Member Publications: 62 Date d'inscription: 04/07/14 Publications récentes
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, modifié il y a 7 années.

RE: Permission check issue in Liferay 7

Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
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