From 8a682722d1b64ba299997ff3f6099db353fab43a Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 15 Jul 2005 11:12:16 +0000 Subject: Merge from WP SVN. git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@27 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-inst/wp-admin/plugin-editor.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'wp-inst/wp-admin/plugin-editor.php') diff --git a/wp-inst/wp-admin/plugin-editor.php b/wp-inst/wp-admin/plugin-editor.php index 16de1cf..4811574 100644 --- a/wp-inst/wp-admin/plugin-editor.php +++ b/wp-inst/wp-admin/plugin-editor.php @@ -34,9 +34,8 @@ switch($action) { case 'update': - if ($user_level < 5) { + if ( !current_user_can('edit_plugins') ) die(__('

You have do not have sufficient permissions to edit templates for this blog.

')); - } $newcontent = stripslashes($_POST['newcontent']); if (is_writeable($real_file)) { @@ -55,9 +54,8 @@ break; default: require_once('admin-header.php'); - if ($user_level <= 5) { + if ( !current_user_can('edit_plugins') ) die(__('

You have do not have sufficient permissions to edit plugins for this blog.

')); - } update_recently_edited("wp-content/plugins/$file"); -- cgit