Update route requirements permissions to use module permissions

Created on 6 July 2021, over 3 years ago
Updated 21 January 2023, almost 2 years ago

Problem/Motivation

The permissions set by the module 'Administer Commerce stock notifications' is not used in commerce_stock_notifications.routing.yml for the two admin routes. Instead the general permission 'access administration pages' is used.

Proposed resolution

Change commerce_stock_notifications.routing.yml line 7 & line 18 from:
_permission: 'access administration pages'
to:
_permission: 'administer commerce stock notifications'

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇺🇸United States artis

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

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