Cap migration.

git-svn-id: https://develop.svn.wordpress.org/trunk@2720 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2005-07-17 19:29:55 +00:00
parent 21a150eefa
commit 268fc9f7a1
10 changed files with 16 additions and 36 deletions
+3 -3
View File
@@ -36,9 +36,8 @@ switch($action) {
case 'update':
if ($user_level < 5) {
if ( ! current_user_can('edit_files') )
die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'));
}
$newcontent = stripslashes($_POST['newcontent']);
if (is_writeable($real_file)) {
@@ -57,7 +56,8 @@ break;
default:
require_once('./admin-header.php');
if ( $user_level <= 5 )
if ( ! current_user_can('edit_files') )
die(__('<p>You have do not have sufficient permissions to edit templates for this blog.</p>'));
if ( strstr( $file, 'wp-config.php' ) )