RBAC Custom Conditions for Strapi Navigation Plugin

Hello All,

I have been trying to figure this issue out on my own for too long now. Simply put, I need to restrict what menus a specific role can read and update. I’m using the Strapi verified Navigation plugin found here.

I have a couple other RBAC custom conditions that work fine(for Strapi content types) but I cannot seem to restrict access to any of the menus in the Navigation plugin. Below is the condition I have now that doesn’t work. I’ve tried to target fields other than ‘id’ as well with no luck. The user with this condition applied can still read/update all menus.

Does anyone have advice or see what I’m doing wrong in the code below? Any help is appreciated as I’m at my wits end here,

const docsNavigation = {
  displayName: "Can only view docs navigation",
  name: "docs-nav-access",
  async handler(user) {
    return { id: { $eq: '3' } };

await strapi.admin.services.permission.conditionProvider.register(docsNavigation);
System Information
  • Strapi Version: 4.15.0
  • Operating System: Linux
  • Database: MySql
  • Node Version: 16
  • Yarn Version: 3.6.3
  • strapi-plugin-navigation: latest

Most likley the plugin has no rbac conditionals suport you could maby do it by role by if you disable the permissions in the plugin section

I cannot limit a role to certain menus that way unfortunately.