summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/blog/blog.pages.inc2
-rw-r--r--modules/blog/blog.test1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/blog/blog.pages.inc b/modules/blog/blog.pages.inc
index 889bf47a1..320fd6921 100644
--- a/modules/blog/blog.pages.inc
+++ b/modules/blog/blog.pages.inc
@@ -58,7 +58,7 @@ function blog_page_last() {
global $user;
$build = array();
- if (user_access('edit own blog')) {
+ if (user_access('create blog content')) {
$items[] = l(t('Create new blog entry.'), "node/add/blog");
$build['blog_actions'] = array(
'#items' => $items,
diff --git a/modules/blog/blog.test b/modules/blog/blog.test
index 658640a9b..5994d6e29 100644
--- a/modules/blog/blog.test
+++ b/modules/blog/blog.test
@@ -157,6 +157,7 @@ class BlogTestCase extends DrupalWebTestCase {
$this->assertResponse(200);
$this->assertTitle('Blogs | Drupal', t('Blog page was displayed'));
$this->assertText(t('Home'), t('Breadcrumbs were displayed'));
+ $this->assertLink(t('Create new blog entry.'));
// Confirm a blog page was displayed per user.
$this->drupalGet('blog/' . $user->uid);