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

Created on 15 August 2023, over 1 year ago
Updated 31 August 2024, 4 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

Fixed

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.71.5 2024