community dispatch for non-members goes to the profile page
This commit is contained in:
parent
fc453fb3dc
commit
75feedb910
|
@ -9,9 +9,9 @@
|
||||||
*
|
*
|
||||||
* The Original Code is the Venice Web Communities System.
|
* The Original Code is the Venice Web Communities System.
|
||||||
*
|
*
|
||||||
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@ricochet.com>,
|
||||||
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
||||||
* Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
* Copyright (C) 2001-2004 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
||||||
*
|
*
|
||||||
* Contributor(s):
|
* Contributor(s):
|
||||||
*/
|
*/
|
||||||
|
@ -46,6 +46,10 @@ public class CommunityDispatchServlet extends BaseServlet
|
||||||
{ // get the community's context from the alias name
|
{ // get the community's context from the alias name
|
||||||
CommunityContext comm = req.getUser().getCommunityContext(alias);
|
CommunityContext comm = req.getUser().getCommunityContext(alias);
|
||||||
|
|
||||||
|
if (!(comm.isMember() || comm.isAdmin()))
|
||||||
|
// if not a member, hit the profile page, which has the Join Now button
|
||||||
|
return new Redirect("comm/show.js.vs?cc=" + comm.getCommunityID(),LinkTypes.SERVLET);
|
||||||
|
|
||||||
// get the default servlet from the community context
|
// get the default servlet from the community context
|
||||||
String def_servlet = req.getDefaultServletAddress(comm);
|
String def_servlet = req.getDefaultServletAddress(comm);
|
||||||
if (logger.isDebugEnabled())
|
if (logger.isDebugEnabled())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user