Use new user_can_foo() functions, clean up comment editing

git-svn-id: https://develop.svn.wordpress.org/trunk@1875 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell
2004-11-23 15:09:24 +00:00
parent d649b199a0
commit 7ed7543a6d
2 changed files with 17 additions and 11 deletions

View File

@@ -342,7 +342,8 @@ function user_can_edit_post($user_id, $post_id, $blog_id = 1) {
$post_author_data = get_userdata($post_data['Author_ID']);
if ( ($user_id == $post_author_data->ID)
|| ($author_data->user_level > $post_author_data->user_level) ) {
|| ($author_data->user_level > $post_author_data->user_level)
|| ($author_data->user_level >= 10) ) {
return true;
} else {
return false;