diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-08-23 11:44:26 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-08-23 11:44:26 +0000 |
commit | 2edfe299a2d2937d45b99001f221e8e910a14fae (patch) | |
tree | a1cd1091e78ffa55eebc5df0e205eef60b529364 /wp-admin | |
parent | c59ac52d8c4b90b51a41a64961a5b0020868fff9 (diff) | |
download | wordpress-mu-2edfe299a2d2937d45b99001f221e8e910a14fae.tar.gz wordpress-mu-2edfe299a2d2937d45b99001f221e8e910a14fae.tar.xz wordpress-mu-2edfe299a2d2937d45b99001f221e8e910a14fae.zip |
Move check for is_site_admin() to the top of the file, props Alexander Concha
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1042 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin')
-rw-r--r-- | wp-admin/wpmu-users.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/wp-admin/wpmu-users.php b/wp-admin/wpmu-users.php index 0c54eb8..fbcc086 100644 --- a/wp-admin/wpmu-users.php +++ b/wp-admin/wpmu-users.php @@ -4,6 +4,9 @@ $title = __('WPMU Admin: Users'); $parent_file = 'wpmu-admin.php'; $id = intval( $_REQUEST[ 'id' ] ); +if( is_site_admin() == false ) { + die( __('<p>You do not have permission to access this page.</p>') ); +} switch( $_REQUEST[ 'action' ] ) { case "confirm": @@ -22,9 +25,6 @@ switch( $_REQUEST[ 'action' ] ) { break; case "allusers": check_admin_referer('allusers'); - if( is_site_admin() == false ) { - die( __('<p>You do not have permission to access this page.</p>') ); - } if( is_array( $_POST[ 'allusers' ] ) ) { while( list( $key, $val ) = each( $_POST[ 'allusers' ] ) ) { if( $val != '' && $val != '0' && $val != '1' ) { @@ -51,9 +51,6 @@ switch( $_REQUEST[ 'action' ] ) { $title = __('WPMU Admin'); $parent_file = 'wpmu-admin.php'; require_once('admin-header.php'); -if( is_site_admin() == false ) { - die( __('<p>You do not have permission to access this page.</p>') ); -} if (isset($_GET['updated'])) { ?><div id="message" class="updated fade"><p><?php _e('Options saved.') ?></p></div><?php } |