CORE-4429: created a function to determine whether or not a user has access to all of the top-level directories