Permalink
Browse files

More cap checks, for 2.8

git-svn-id: http://svn.automattic.com/wordpress/branches/2.8@11765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 82fbf69 commit 57dad41e073800fbe26a3982fcb76c6437f16aa1 azaozz committed Aug 2, 2009
@@ -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
*/
@@ -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
*/
@@ -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) ) { ?>
<div id="message" class="updated fade"><p><strong><?php _e('A tag was not selected for editing.'); ?></strong></p></div>
<?php
View
@@ -9,6 +9,9 @@
/** Load WordPress Bootstrap */
require_once ('admin.php');
+if ( !current_user_can('edit_files') )
+ wp_die(__('You do not have sufficient permissions to export the content of this blog.'));
+
/** Load WordPress export API */
require_once('includes/export.php');
$title = __('Export');
View
@@ -8,6 +8,10 @@
/** Load WordPress Bootstrap */
require_once ('admin.php');
+
+if ( !current_user_can('edit_files') )
+ wp_die(__('You do not have sufficient permissions to import content in this blog.'));
+
$title = __('Import');
require_once ('admin-header.php');
$parent_file = 'tools.php';
@@ -9,6 +9,9 @@
/** Load WordPress Administration Bootstrap */
require_once('admin.php');
+if ( ! current_user_can('manage_links') )
+ wp_die(__('You do not have sufficient permissions to add links to this blog.'));
+
$title = __('Add New Link');
$parent_file = 'link-manager.php';

0 comments on commit 57dad41

Please sign in to comment.