From 3d7a5dce98ce88faa9f27daf73000532f2a7350a Mon Sep 17 00:00:00 2001 From: azaozz Date: Sun, 2 Aug 2009 02:23:54 +0000 Subject: [PATCH] More cap checks, for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@11764 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-category-form.php | 3 +++ wp-admin/edit-link-category-form.php | 3 +++ wp-admin/edit-tag-form.php | 3 +++ wp-admin/export.php | 3 +++ wp-admin/import.php | 4 ++++ wp-admin/link-add.php | 3 +++ 6 files changed, 19 insertions(+) diff --git a/wp-admin/edit-category-form.php b/wp-admin/edit-category-form.php index 2e37f79641..9dd98aeaa3 100644 --- a/wp-admin/edit-category-form.php +++ b/wp-admin/edit-category-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit categories for this blog.')); + /** * @var object */ diff --git a/wp-admin/edit-link-category-form.php b/wp-admin/edit-link-category-form.php index bb721110c6..cee75dcc39 100644 --- a/wp-admin/edit-link-category-form.php +++ b/wp-admin/edit-link-category-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit link categories for this blog.')); + /** * @var object */ diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index efef02bcab..de975c9765 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -6,6 +6,9 @@ * @subpackage Administration */ +if ( !current_user_can('manage_categories') ) + wp_die(__('You do not have sufficient permissions to edit tags for this blog.')); + if ( empty($tag_ID) ) { ?>