How to restrict the directories or elements a user can navigate to?
Question / Problem
In my application I want to restrict the access to only some folders or a single branch of the file system. How can achieve this?
Answer / Solution
There are several measures you can take, depending on the components you are using:
In the TJamShellTree, you can set the root nodes via the MultipleRoots and RootedAt properties. RootedAt is also available for the BreadCrumbBar.
To avoid, that a user manually opens a folder you have different options of interception:
- if the components share a TJamShellLink, you can use its OnNavigating event to control the opening of folders
- some controls have additional own events that serve the same purpose. See https://knowledgebase.jam-software.com/6774?language=EN