diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-15 11:12:16 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-15 11:12:16 +0000 |
| commit | 8a682722d1b64ba299997ff3f6099db353fab43a (patch) | |
| tree | f5e794047b9e92676e44100cedb7848297a9600b /wp-inst/wp-admin/theme-editor.php | |
| parent | eb69639d667f0c15130e26e79e06fd6f891f3936 (diff) | |
| download | wordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.tar.gz wordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.tar.xz wordpress-mu-8a682722d1b64ba299997ff3f6099db353fab43a.zip | |
Merge from WP SVN.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@27 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-admin/theme-editor.php')
| -rw-r--r-- | wp-inst/wp-admin/theme-editor.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wp-inst/wp-admin/theme-editor.php b/wp-inst/wp-admin/theme-editor.php index 3ebf035..66c5140 100644 --- a/wp-inst/wp-admin/theme-editor.php +++ b/wp-inst/wp-admin/theme-editor.php @@ -45,9 +45,8 @@ switch($action) { case 'update': - if ($user_level < 5) { + if ( !current_user_can('edit_themes') ) die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>')); - } $newcontent = stripslashes($_POST['newcontent']); $theme = urlencode($theme); @@ -67,9 +66,8 @@ break; default: require_once('admin-header.php'); - if ($user_level <= 5) { + if ( !current_user_can('edit_themes') ) die(__('<p>You have do not have sufficient permissions to edit themes for this blog.</p>')); - } update_recently_edited($file); |
