HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Basic Pages Permission

This discussion is related to the Basic Pages addon.

Hi Everyone,

I am trying to add a navigation link to the foundation theme with basic pages addon. I am able to do this by editing the variables.neon file. However I can seem to use the permission to only display it to members with the view roll for that basic page. I can't seem to get the permission working even for garden.activity.view etc.

I have the following but can't seem to get it to work at all. The nav link shows when i don't set a permission.

 navItems: {

       default: [

       {

         to: "/discussions",

         children: "Discussions",

       },

      {

         to: "/categories",

         children: "Categories",

       },

       {

         to: "/Council-contacts",

         children: "Council Contacts",

         permission: "BasicPages.Council-contacts.View"

       },

       ],

Any help will be greatly applicated :)

Emil

Sign In or Register to comment.