My portlet has a service builder entity which is not tied to a groupId, I need to check if users have permission to create instances of this entity. It's like a global permission checking, I need to check if users have permissions to add devices to the portal, regardless of the Site my portlet is deployed to.
Here's my permission checker code:
permissionChecker.hasPermission(0, RESOURCE_NAME, 0, actionId);
Here's the source code:
This used to work back in August this year, it was suddenly broken in master. It throws PrincipalException all the time now.
Tomáš Polešovský was able to figure out which change caused it: