- Issue created by @abelass
- 🇨🇭Switzerland ayalon
I have tested this with the latest 1.0.0 version and it works for me.
2 things to consider:
Did you implement an access hook for the menu? Maybe you have an access hook only allowing view access on "main"?
https://graphql-core-schema.netlify.app/basics/security.html/** * Implements hook_ENTITY_TYPE_access(). */ function MY_MODULE_menu_access(EntityInterface $entity, $operation, AccountInterface $account) { // Grant view access to the main menu to everyone. $id = $entity->id(); if ($operation === 'view' && $id === 'main') { return AccessResult::allowed(); } return AccessResult::neutral(); }
Do you have a very cryptic broken machine nime that might give you troubles?
- Status changed to Closed: cannot reproduce
9 months ago 11:07am 29 February 2024 - 🇪🇸Spain abelass
I restested and ti's not a custom or non custom menu qustion
Access Permission are already implemented and worked before. (As said it worked on Beta 7)
I may be related to the menu names but I couldn't fin a pattern
for Example a menu called
test-test-test
query getMenu { menuByName(name: TEST_TEST_TEST) { id label } }
works
but not a menu called
menu-espace-membres
query getMenu { menuByName(name: MENU_ESPACE_MEMBRES) { id label } }