How to hide a flow based on the role
I have created an app using Empty template where I have 2 flows. I want to hide a flow based on role. I was able to secure the flow based on role on flow security tab under setting. But my requirement is to completely hide that flow. Any pointers on this. I checked the Navdata source variable at app level. I also checked the navigation list used in shell drawer page fragment but could not figure out how to hide the flow.
Also I want to close the drawer automatically after I select a flow. How to do this?