Skip to:
Content

BuddyPress.org

Changeset 1682


Ignore:
Timestamp:
08/22/2009 07:42:53 PM (17 years ago)
Author:
apeatling
Message:

Redirect the logged in user (and not site admin) away from the signup page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r1671 r1682  
    66        if ( $bp->current_component != BP_REGISTER_SLUG )
    77                return false;
     8               
     9        /* If the user is logged in, and is not a site admin, redirect away from here */
     10        if ( is_user_logged_in() && !is_site_admin() )
     11                bp_core_redirect( $bp->root_domain );
    812       
    913        /***
Note: See TracChangeset for help on using the changeset viewer.