Commit 022fdbc4 authored by Dries's avatar Dries

- Patch #290887 by Dave Reid, Jody Lynn: checked permission using the wrong permission name.

parent ee9421a8
......@@ -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,
......@@ -157,6 +157,7 @@ class BlogTestCase extends DrupalWebTestCase {
$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);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment