You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I'm trying to achieve a scenario where editors only have access to specific menus.
I'm unsure if the Navigation plugin supports these custom conditions or if I'm missing something in my implementation.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: