Hiding Vendor Menu Items

Hi!

I made a small change in the last line (change true to false) and now it is working. How to remove pages from menu but not blog:

$schema['controllers']['pages'] = [
    'modes' => [
         'manage' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ]
        ],
    ],
    'permissions' => false
];

I checked the results better and the code solved a part of problem.

In fact it hide the page menu and allow to see blogs, but now vendors are unable to create blogs.

Using the following code make the add blog button appear again, but when you click on it, you receive a 403 error. Trying to figure out how to make it work again:

$schema['controllers']['pages'] = [
    'modes' => [
         'manage' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ],
        ],
    ],
    'permissions' => ['GET' => false, 'POST' => true]
];

Try to play with permission for modes. For example, set permissions to true for the add and update mode

I tried, but seems that is not possible to disable only pages without impact blog funcionality. Seems that in someway the "update" mode require that "get" is enabled and this is causing a 403 when trying to edit a blog. The same doesnt occur with the "add" mode. Here is the last code:

$schema['controllers']['pages'] = [
    'modes' => [
         'manage' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ],
        ],
        'update' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ],
        ],
        'add' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ],
        ],
        'view' => [
                   'param_permissions' => [
                        'page_type' => [
                            'B' => true,
                        ],
                        'default_permission' => false,
                    ],
        ],
    ],
    'permissions' => ['GET' => false, 'POST' => true]
];

As I couldnt hide the pages menu using the permission file, I used another method.

I created a new menu_multivendor.post.php in app/addons/my_changes/schemas/menu then I used the following code:

/* Hide Pages Menu From Vendor */

$schema[‘central’][‘website’][‘items’][‘pages’] = false;

return $schema;

Would be better find a way to block using permission, but for those just interested in to hide the menu this would work.

I'm trying to hide the menu item "add ons" in the vendor-menu.
Can anybody help me with that?

Best regards
Ronny