All users, including superuser / admin, get access denied on /custom_node_add

Created on 15 August 2023, 11 months ago
Updated 8 November 2023, 8 months ago

Problem/Motivation

Cannot use the module without access to that page! People with all permissions should always be able to access everything.

Steps to reproduce

Enable module. Configure Custom Add Content menu. Try to click any Add Content link, either from the admin menu or the content overview page.

Proposed resolution

Ensure using exact same access control as node/add

(Probably an aside, but i would recommend continuing to use the node/add path instead of changing thatโ€” that is, do something like this in the alterRoute method:

    if ($route = $collection->get('node.add')) {
      $route->setDefault('_controller', '\Drupal\custom_add_content\Controller\NodeController::addPage');
    }

)

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States mlncn Minneapolis, MN, USA

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

Comments & Activities

Production build 0.69.0 2024