Allow Author role to edit published posts.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3243 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-30 07:47:22 +00:00
parent b174a8dadb
commit 7b9f47b54b
3 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,7 @@ function upgrade_all() {
upgrade_130();
}
if ( $wp_current_db_version < 3199 )
if ( $wp_current_db_version < 3243 )
upgrade_160();
save_mod_rewrite_rules();

View File

@ -307,6 +307,7 @@ function populate_roles_160() {
$role = $wp_roles->get_role('author');
$role->add_cap('upload_files');
$role->add_cap('edit_posts');
$role->add_cap('edit_published_posts');
$role->add_cap('publish_posts');
$role->add_cap('read');
$role->add_cap('level_2');

View File

@ -3,6 +3,6 @@
// This just holds the version number, in a separate file so we can bump it without cluttering the SVN
$wp_version = '2.0-RC1';
$wp_db_version = 3199;
$wp_db_version = 3243;
?>