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