掲示板

Search issue for Team

11年前 に Chintan Akhani によって更新されました。

Search issue for Team

Regular Member 投稿: 111 参加年月日: 08/03/13 最新の投稿
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
11年前 に Hitoshi Ozawa によって更新されました。

RE: Search issue for Team

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
I don't think there is a regular role for team.
11年前 に Chintan Akhani によって更新されました。

RE: Search issue for Team

Regular Member 投稿: 111 参加年月日: 08/03/13 最新の投稿
Yes for Team role type is "provider", and we found that during indexing it checks for "Regular" and "Site" type role only.

Thanks,
Chintan
11年前 に Chintan Akhani によって更新されました。

RE: Search issue for Team

Regular Member 投稿: 111 参加年月日: 08/03/13 最新の投稿
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.