Fórumok

Permission based search not working for Webcontent

First Timer, módosítva 11 év-val korábban

Permission based search not working for Webcontent

New Member Bejegyzések: 5 Csatlakozás dátuma: 2011.08.24. Legújabb bejegyzések
Hi,

We are using Liferay 6.1CE in our project and what I found is that, search results are not refined based on the user permissions for webcontent.
I some how managed to restrict the search results by overriding hasPermission and enabling FilterSearch in JournalIndexer.
But the problem is , I couldn't dwindle down the frequency count for categories and assets (Facets)..

Can any of you please let me know what class I need to customize to get the expected behavior for search based on user permission .

This is quite urgent to me, any help is much appreciated.
thumbnail
Yogesh Agrawal, módosítva 11 év-val korábban

RE: Permission based search not working for Webcontent

Junior Member Bejegyzések: 34 Csatlakozás dátuma: 2010.05.17. Legújabb bejegyzések
Document and images are filtered based on permissions.
You can look at DLIndexer.java
@Override
	public boolean hasPermission(
			PermissionChecker permissionChecker, long entryClassPK,
			String actionId)
		throws Exception {

		return DLFileEntryPermission.contains(
			permissionChecker, entryClassPK, ActionKeys.VIEW);
	}


same you have to achieve in JournalIndexer