Open bobbylipps opened 1 year ago
Could you share which strapi/plugin versions you are using?
Thanks for the reply.
strapi - 4.14.2 strapi-plugin-navigation - latest
Do you need anything else?
I don't know if I will be able to help but the versions you are using is important info for anyone that will try to help.
In regard to applying custom roles to the admin endpoints filtering - there is no built-in support. But your case looks interesting and I think we might consider to put it into the backlog.
Description: I'm attempting to implement custom conditions within the Navigation plugin to restrict certain menus based on user roles. Specifically, I want to limit the menus an editor can access and modify.
I added the following custom condition in
src/index.js
:I tried applying the custom condition using various field names such as id, name, slug, etc. I navigated to the navigation editing page at /admin/plugins/navigation and can still see all menus. The custom condition is applied to the role in the Strapi admin.
Expected Behavior: The custom condition should limit the visibility and editability of menus based on the specified condition.
Actual Behavior: The custom condition doesn't seem to have any effect on the navigation editing page. No matter which field name I use, the condition doesn't seem to apply.
Additional Information:
Any guidance or clarification on whether the Navigation plugin supports such custom conditions would be greatly appreciated.
strapi - 4.15.0 strapi-plugin-navigation - latest