On a fresh installation of Drupal 7, go to admin/structure/block/demo/bartik as an unprivileged/anonymous user. The "access denied" page you get to shows the region names, which is only supposed to be shown to administrators:

Demo page with regions showing for anonymous users

Comments

David_Rothstein’s picture

Drupal 8 does not have this issue, but has a related issue instead.

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

Seems to be a simple fix - not sure if this is worth writing a test for.

mr.baileys’s picture

Patch still applies, and I confirmed that it correctly addresses the issue. The block demonstration functionality does not yet have any tests, so I added some basic coverage, including a test for the bug reported here.

Status: Needs review » Needs work

The last submitted patch, 3: block_demo_page_shows-2491629-3.patch, failed testing.

mr.baileys’s picture

Status: Needs work » Needs review
StatusFileSize
new3.15 KB

Patch was generated from diff against incorrect commit.

The last submitted patch, 3: block_demo_page_shows-2491629-3-test-only.patch, failed testing.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.