Skip to content
Snippets Groups Projects
Commit 022fdbc4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent ee9421a8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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->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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment