Permission property in the routing file

Created on 6 July 2023, 12 months ago
Updated 26 January 2024, 5 months ago

Problem/Motivation

PHPCS throws the following five errors for the routing file.

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\exception_mailer\exception_mailer.routing.yml
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  7 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about
    |         | viewing but not changing configurations.
 17 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about
    |         | viewing but not changing configurations.
 27 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about
    |         | viewing but not changing configurations.
 37 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about
    |         | viewing but not changing configurations.
 47 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access administration pages" which is about
    |         | viewing but not changing configurations.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

I'm changing the permission property to 'administer site configuration' and providing a patch for it in case it's required.

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

Production build 0.69.0 2024