Page info is showing for anonymous users

Created on 21 January 2024, 5 months ago
Updated 1 March 2024, 4 months ago

Problem/Motivation

The new page info area shows above the content when checking the Show page information block option on the /admin/config/quant page. This should only be shown to admins and content editors but it's also showing up for anonymous users.

Steps to reproduce

  • Install/configure Drupal 10 with Umami profile
  • Install/configure quant_api module
  • Check the Show page information block option on the /admin/config/quant page and save
  • Seed content to Quant
  • Go to a node page
  • You should see the page info block at the top of the content
  • Use a private browser and go to the same node page
  • Result: You still see the page info
  • Expected result: The page info is not shown

Proposed resolution

Only show page info based on permissions so admins and content editors can see it.

Remaining tasks

  • Update code
  • Review and test
  • Commit :)

User interface changes

Anonymous users won't see the page info.

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024