- Issue created by @mlncn
- Assigned to shalini_jha
- Issue was unassigned.
- Status changed to Needs review
10 months ago 8:55am 11 September 2023 - ๐ฎ๐ณIndia shalini_jha
Hi
I have added a commit and patch for the solution to this issue, please review.
Cannot use the module without access to that page! People with all permissions should always be able to access everything.
Enable module. Configure Custom Add Content menu. Try to click any Add Content link, either from the admin menu or the content overview page.
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');
}
)
Needs review
2.0
Code
Hi
I have added a commit and patch for the solution to this issue, please review.