[wpmu-trac] [WordPress MU Trac] #561: Access wp-admin with user with no rights error

WordPress MU Trac wpmu-trac at lists.automattic.com
Mon Feb 11 15:23:22 GMT 2008


#561: Access wp-admin with user with no rights error
------------------------+---------------------------------------------------
 Reporter:  bi0xid      |       Owner:  somebody
     Type:  task        |      Status:  new     
 Priority:  normal      |   Milestone:          
Component:  component1  |     Version:          
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 Just founded a small problem on my system.

 Apache/1.3.39 (Unix) mod_perl/1.29 PHP/4.4.7 MySQL/4.1.22

 I have installed a WPµ site with multiple blogs and users.

 When accessing WP-µ using administrator, or without being authentified, I
 have no problem at all. But, if you are authentified, and try to enter to
 another blog where you have no rights, it will try to reach wp-admin/ and
 it will fail, sending you to page http://wp-admin/ (or, if your DNS works
 like that, http://www.wp-admin.com).

 It also happens if you are not authentified at all and try to enter in
 other blog of the multiblog where you have not any rights with your user.
 It means, you try to enter in http://myblog.com/mattsblog/wp-admin/ with
 the user of /jacksblog/ and it will reach http://wp-admin/

 I have found a simple solution.

 1. Go to your wp-login.php file in your host.

 2. Go to line 213, and make this change:


 {{{
 $redirect_to = 'wp-admin/';
 $redirect_to = ABSPATH . 'wp-admin/';
 }}}


 It will work correctly again.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/561>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list