Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Custom permissions checker in Liferay 7
Is it possible to provide a Permissions Checker via osgi bundle?
With Liferay 6.2 we managed to use a different permissions checker by deploying an ext plugin.
The in portal-ext.properties we inserted the property
With Liferay7 we weren't able to provide a permissions checker via OSGI, so we ended up copying the bundle into the WEB-INF/lib of the ROOT app.
I hope there's a different way to achieve this, otherwise I don't get the choice of exclude the ext plugins from Liferay 7.
I've heard that they will be reintroduced, but still, if there are custom classes as portal property values, how were these properties supposed be used prior to the GA4?
Don't mean to be rude or criticize, just pointing out few doubts
With Liferay 6.2 we managed to use a different permissions checker by deploying an ext plugin.
The in portal-ext.properties we inserted the property
permissions.checker=com.example.MyPermissionsChecker
and everything worked fine.With Liferay7 we weren't able to provide a permissions checker via OSGI, so we ended up copying the bundle into the WEB-INF/lib of the ROOT app.
I hope there's a different way to achieve this, otherwise I don't get the choice of exclude the ext plugins from Liferay 7.
I've heard that they will be reintroduced, but still, if there are custom classes as portal property values, how were these properties supposed be used prior to the GA4?
Don't mean to be rude or criticize, just pointing out few doubts

No, you can't currently define the permission checker in an OSGi bundle. Rather than copying the lib in manually, though, this is actually a job for the EXT plugin which should be returning in GA4.
Come meet me at the 2017 LSNA!
Come meet me at the 2017 LSNA!
Hi, do we still have this limitation in the latest version 7.2.0 GA2 ?
Works in 7.0 too. Just register a new PermissionCheckerFactory to create the custom permissions checker instances.
See https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/web-experience/staging/staging-security/src/main/java/com/liferay/staging/security/internal/permission/StagingPermissionCheckerFactory.java
See https://github.com/liferay/liferay-portal/blob/7.0.x/modules/apps/web-experience/staging/staging-security/src/main/java/com/liferay/staging/security/internal/permission/StagingPermissionCheckerFactory.java
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™