Hi team, i'm attempting to implement permissions to a group of users to only be able to access certain apps, which so far has worked good. The only issue that i'm having is with the navigation module that I built to be used across all the apps, which is not showing all the items the user has access unless permission is also given to a specific one.
The below is a basic example of how we have the structure of the navigation component and their parent/child relation, which are all pointing to certain apps inside Retool.
Home
User
User Management
User Settings
Reports
Cases
Create Cases
Delete Cases
Now, when I have a Permission Group only with access to "Reports", the expected behaviour is to see on the "User" with the dropdown to see then "Reports". But in reality, the user is not able to see any of the options, unless "User Settings" is also added to the permissions of the user, which then I do see the dropdown with both "Reports" and "User Settings".
This basically forces me to allow users access to apps that they are not intended to have.
Note: At some point I did tested to have the item pointing directly to the app URL instead of the APP, which still caused this behaviour (even weirder...)
There not any specific logic. I have a module being used as a sidebar menu, and the following are some of the menu items where I can reproduce this behaviour.
They are all leveraging similar logic where the item is simply redirecting to another app.
The following are the permissions of the apps that I want to give access to users.
But unless I also provide access to the "Call Assessment" app, the dropdown will not render. It is like the "call assessment" is mandatory in order for the dropdown menu to render.
Let me know if you need further clarification or info on this one!
Seems that before I adding sub-items, the main item was pointing to an app, which explains why when I removed the permissions to that app, the entire menu item would be hidden.
The trick was to ungroup all the children, make the main item point to nowhere, and then group them again.