[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
Fri Oct 28 17:11:26 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:                |
--------------------------+----------------------

Comment (by justin mason):

 Thanks for the code snippit, Mr. Gorges. Appreciate your help. I'm not
 sure why this would be intended behavior for users without blog access,
 but I am happy never the less. :)

 Replying to [comment:1 boonebgorges]:
 > 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:2>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list