LPS-45013 Excessively long content creation times when a high number of roles is in the Portal
LPS-45013 Revert changes in SearchPermissionCheckerImpl.java. Let's keep this simple and just use the fix in ResourcePermissionLocalServicImpl that gets rid of the use of the inefficient sql
LPS-45013 Don't create the set if we don't need to