Is there a way to disable user browsing so that non-authenticated users cannot see the user listing?
Hey Brad,
There's no way to do this out of the box, you'll need to make customizations to the PeopleActions class and check if the current user is a Guest or a Registered User for that to work.
Thanks,
Vinh
Yikes, that is not good for our site. We want personal information to be shared amongst members but definitely not to guest/anonymous users - ever. If a user is registered than it is ok. We have no need for a complex permissions model surrounding user profiles. We just need something that restricts guets.
I did a little more digging following hazimj's suggestion. You can use the global authentication variable on the template (FTL) level to disallow guests from viewing the People page. You need to implement this theme change to template/global/people.ftl:
<#if !(authentication.anonymous)>
PLACE CODE HERE
</#if>
Vinh
Basically, you cuold wrap that IF condition around the entire people.ftl file. You can also add an ELSE clause that will tell guests that they're not allowed to view this page.
You'd have to alter the action and rebuild the source to do this correctly. There's another method -- it's a hack but it would be much easier. You can call your <clearspace URL>/login.jspa?authzFailed=true link within the ELSE clause of the people FTL.
Hi Vinh,
Thanks for the reply and the suggestions. I have just finished testing the following using the IF/ELSE statement that you suggested..
I implemented the if statement around the people.ftl
<#if !(authentication.anonymous)>
PEOPLE.FTL
<#else>
UNAUTH.FTL
</#if>
I then copied and pasted the code from the /template/global/unauth.ftl into the Else component of the statement and edited the unauth.ftl content to display a nice message..
So the whole page looks great and performs exactly how we would like it too..
thanks for the great tip and help..
Nathan
That looks great! I'm glad you got it working.
Thanks Vinh..
I've also taken that same logic and wrapped it around the Projects & People links on the main page via the Main.FTL template.
<#if !(authentication.anonymous)>
<#if projectsEnabled>
<span><a href="<@s.url value="/projects"/>" class="jive-link-project-small"><@s.text name='main.projects.link' /></a></span> </#if>
<a href="<@s.url value="/people"/>" class="jive-link-people-small"><@s.text name="main.people.link" /></a>
</#if>
and it works just as I had hoped.. It hides the people and projects link to guest users..
Thanks
Nathan
Hi Nathan,
I am looking into allow/disallow the anonymous users to take the survey.
It should display a message asking for login if user is not logged in to the system and anonymous users are not allowed to take the survey.
If the anonymous users are allowed, then we should make sure that the data collection process works properly without user login.
how to implement this logic..give me some suggestion and sample code.
Thanks,
deepa.
I'd like to add that this capabillity will be available in the next major release of Clearspace. For the record the improvement number is CS-4869.
Cheers,
Alex
Hi Alex
What is the extent of this capability?
Cheers
Nathan
Has anonymous user browsing been fixed in the 2.5 series?
We could proceed with a customization, but this sounds like a pretty common feature that other sites are looking for.
Brad
Hi - just to say we are also wanting this type of functionality and want to control what our unregistered users can see,specifically the people profile info.
Chris
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205