[buddypress-trac] [BuddyPress] #3714: Buddypress users can log in via wp-admin, view site details

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Oct 26 23:10:58 UTC 2011


#3714: Buddypress users can log in via wp-admin, view site details
--------------------------+----------------------
 Reporter:  justin mason  |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Core          |     Version:  1.5
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This is intended behavior. If you don't want users to have access to wp-
 admin, do something like the following:

 {{{

 function bbg_redirect_from_admin() {
    if ( !current_user_can( 'edit_posts' ) ) {
       bp_core_redirect( bp_get_root_domain() );
    }
 }
 add_action( 'admin_init', 'bbg_redirect_from_admin', 1 );

 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3714#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list