Foros de discusión
Directory Portlet > Guest > View ... HOW?????????????
Chris Wirth, modificado hace 14 años.
Directory Portlet > Guest > View ... HOW?????????????
Junior Member Mensajes: 77 Fecha de incorporación: 8/05/09 Mensajes recientes
5.2.3 on Tomcat 5.5... subject line says it all.
When I try to give view permissions to the Guest role for the Directory Portlet -- the drop-dwon menu is inactive.
Can one seriously NOT give directory view permissions to a guest?????????
-Chris
*lack of permissions, documentation, and LDAP mappings will be THE reasons I give up on Liferay... so much wasted time looking for a needle in a hay stack for simple functionality
When I try to give view permissions to the Guest role for the Directory Portlet -- the drop-dwon menu is inactive.
Can one seriously NOT give directory view permissions to a guest?????????
-Chris
*lack of permissions, documentation, and LDAP mappings will be THE reasons I give up on Liferay... so much wasted time looking for a needle in a hay stack for simple functionality
Amos Fong, modificado hace 14 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Hey Chris,
It is disabled for guest I assume for security reasons so everyone doesn't have access to that info.
The enable it for guest, the file of interest is resource-actions/portal.xml. This wiki shows how although slightly outdated: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Overwrite+Liferay+Portlet+Permissions
it's actually called ext-impl now. But if you're not using ext environment, just do the same thing in web-inf/classes
It is disabled for guest I assume for security reasons so everyone doesn't have access to that info.
The enable it for guest, the file of interest is resource-actions/portal.xml. This wiki shows how although slightly outdated: http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Overwrite+Liferay+Portlet+Permissions
1. ext-ejb/classes/portal-ext.properties
* resource.actions.configs=resource-actions/default.xml,resource-actions/default-ext.xml
2. ext-ejb/classes/resource-actions/default-ext.xml
* <resource-action-mapping>
* <resource file="resource-actions/$portletname.xml" />
* </resource-action-mapping>
3. ext-ejb/classes/resource-actions/$portletname.xml
it's actually called ext-impl now. But if you're not using ext environment, just do the same thing in web-inf/classes
Chris Wirth, modificado hace 14 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
Junior Member Mensajes: 77 Fecha de incorporación: 8/05/09 Mensajes recientes
Amos, thanks!
I actually used the code from this thread:
Directory Perms for Guest
I created portal.xml at:
C:\liferay\tomcat-5.5.27\webapps\ROOT\WEB-INF\classes\resource-actions
And added this code:
1
2<portlet-resource>
3
4 <portlet-name>11</portlet-name>
5
6 <supports>
7
8 <action-key>CONFIGURATION</action-key>
9
10 <action-key>VIEW</action-key>
11
12 </supports>
13
14 <community-defaults />
15
16 <guest-defaults />
17
18 <guest-unsupported>
19
20 </guest-unsupported>
21
22 </portlet-resource>
That created an active "view" check box for Guest under the Directory portlet permmisions. While a guest can now see the directory portlet and do a search and get results, they do not have permissions to click the link and see user info... Any ideas??????
Thanks so much for your help.
-Chris
I actually used the code from this thread:
Directory Perms for Guest
I created portal.xml at:
C:\liferay\tomcat-5.5.27\webapps\ROOT\WEB-INF\classes\resource-actions
And added this code:
1
2<portlet-resource>
3
4 <portlet-name>11</portlet-name>
5
6 <supports>
7
8 <action-key>CONFIGURATION</action-key>
9
10 <action-key>VIEW</action-key>
11
12 </supports>
13
14 <community-defaults />
15
16 <guest-defaults />
17
18 <guest-unsupported>
19
20 </guest-unsupported>
21
22 </portlet-resource>
That created an active "view" check box for Guest under the Directory portlet permmisions. While a guest can now see the directory portlet and do a search and get results, they do not have permissions to click the link and see user info... Any ideas??????
Thanks so much for your help.
-Chris
Amos Fong, modificado hace 14 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
I think you'll need to edit more view permissions for guests. The ones I found needed are
<model-name>com.liferay.portal.model.User</model-name>
<model-name>com.liferay.portal.model.Organization</model-name>
<model-name>com.liferay.portal.model.User</model-name>
<model-name>com.liferay.portal.model.Organization</model-name>
Maxence Duthoo, modificado hace 14 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
New Member Mensajes: 2 Fecha de incorporación: 1/12/09 Mensajes recientes
Hi,
After this code ....
1
2<portlet-resource>
3
4 <portlet-name>11</portlet-name>
5
6 <supports>
7
8 <action-key>CONFIGURATION</action-key>
9
10 <action-key>VIEW</action-key>
11
12 </supports>
13
14 <community-defaults />
15
16 <guest-defaults />
17
18 <guest-unsupported>
19
20 </guest-unsupported>
21
22 </portlet-resource>
... you can now configure your portlet in control panel / Roles / Guest / Define permissions / Add portlet permissions / Directory /
Then you will be able to see the profile of each user even if you are a guest.
Bye
Maxence
After this code ....
1
2<portlet-resource>
3
4 <portlet-name>11</portlet-name>
5
6 <supports>
7
8 <action-key>CONFIGURATION</action-key>
9
10 <action-key>VIEW</action-key>
11
12 </supports>
13
14 <community-defaults />
15
16 <guest-defaults />
17
18 <guest-unsupported>
19
20 </guest-unsupported>
21
22 </portlet-resource>
... you can now configure your portlet in control panel / Roles / Guest / Define permissions / Add portlet permissions / Directory /
Then you will be able to see the profile of each user even if you are a guest.
Bye
Maxence
Krati Gupta, modificado hace 13 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
Regular Member Mensajes: 119 Fecha de incorporación: 5/12/08 Mensajes recientes
Hi Stephen,
I had tried your solution but doesn't work for me ,please help me .
my requirement is when I search name of user through search box (ie search portlet) it will give me the name of user but when I clicked to know their details it will give me You do not have the roles required to access this portlet. .
Please help how to solve this ..
I had tried your solution but doesn't work for me ,please help me .
my requirement is when I search name of user through search box (ie search portlet) it will give me the name of user but when I clicked to know their details it will give me You do not have the roles required to access this portlet. .
Please help how to solve this ..
Rajesh Bangaram, modificado hace 12 años.
RE: Directory Portlet > Guest > View ... HOW?????????????
Junior Member Mensajes: 71 Fecha de incorporación: 8/03/11 Mensajes recientes
Hi,
I have the same requirement, did anyone succeed in showing directory portlet to guest?
I tried adding default-ext.xml, directory.xml file under resource-actions folder in ext-impl and updated portal-ext.properties to include resource.actions.configs=resource-actions/default.xml,resource-actions/default-ext.xml . But could not see any change.
Thanks for your response.
-Rajesh
I have the same requirement, did anyone succeed in showing directory portlet to guest?
I tried adding default-ext.xml, directory.xml file under resource-actions folder in ext-impl and updated portal-ext.properties to include resource.actions.configs=resource-actions/default.xml,resource-actions/default-ext.xml . But could not see any change.
Thanks for your response.
-Rajesh