Use check_access function to check if users can read a dataset