Edit link in breadcrumb region shows even when user has no permission

Created on 7 November 2022, over 2 years ago
Updated 2 March 2023, about 2 years ago

Problem/Motivation

The edit link in the breadcrumb region of the secondary toolbar shows even when the user does not have permission to edit the current page.

Steps to reproduce

  • Install gin and gin_toolbar
  • Create a user with permission to access the admin toolbar but without the permission to edit nodes
  • Create a node and view it with the aforementioned user

Proposed resolution

Don't show the link when the user doesn't have the permission to edit the current page.

Remaining tasks

Perform proper access check in gin_toolbar_preprocess_toolbar before adding the link.

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

๐Ÿ‡ง๐Ÿ‡ชBelgium seutje Antwerp

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024