Fórum

Search issue for Team

Chintan Akhani, modificado 11 Anos atrás.

Search issue for Team

Regular Member Postagens: 111 Data de Entrada: 13/03/08 Postagens Recentes
Hi All,

We are facing permission base search related issue for "team" in liferay 6.1. We created one blog and removed permission for guest and site member, and we gave permission to "team" , but we found that team member is not able to search the record though he is able to see the record in blog portlet, but in search it is not showing.

Same thing is working for all other roles ( guest, site member). Please provide your views on same.
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Search issue for Team

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
I don't think there is a regular role for team.
Chintan Akhani, modificado 11 Anos atrás.

RE: Search issue for Team

Regular Member Postagens: 111 Data de Entrada: 13/03/08 Postagens Recentes
Yes for Team role type is "provider", and we found that during indexing it checks for "Regular" and "Site" type role only.

Thanks,
Chintan
Chintan Akhani, modificado 11 Anos atrás.

RE: Search issue for Team

Regular Member Postagens: 111 Data de Entrada: 13/03/08 Postagens Recentes
We found the solution for same.

We modified ResourcActionsImpl's getRoleTypes method, by default it fetches Regular and Site role, so at the time of indexing it doesn't index team role and that is the reason team members are not able to do search, so we have added TYPE_PROVIDER along with TYPE_REGULAR and TYPE_SITE.


getRoleTypes method is getting called from getRoles() method.


Before Changes :
getRoles method is called from edit_permissions_algorrightm_5_6.jsp. Inside this Jsp it is calling getRoles() method for fetching regular and site roles. and than it fetches team roles using another method.

After Changes :

now getRoles method will provide team roles as well, so no need to make another call to get team roles.