add a cap check at the top of ms-delete-site.php. see #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@12829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-01-25 22:50:36 +00:00
parent 9fc2bef3d1
commit 8c256e5560
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,10 @@ require_once('admin.php');
if ( !is_multisite() )
wp_die( __('Multisite support is not enabled.') );
// @todo Create a delete blog cap.
if ( ! current_user_can('manage_options') )
wp_die(__('You do not have sufficient permissions to delete this blog.'));
$action = isset($_POST['action']) ? $_POST['action'] : 'splash';
$title = __('Delete Blog');