# spicedb


09/22/2023, 3:12 PM
Hello again, if I have a structure similar to a folder -> file system, where a viewer or editor of a folder is a viewer or editor of a file. I could define a specific permission for a user to a file. However, if the user wants to access the file, they should also have, at least, read permissions in the parent folder. Is there an example for such case? The only thing I can think of is adding a file relationship to a folder but looks a bit ugly (and circular). I basically want to make sure, in a UI, that if a user has access to some section in a specific page, at least they should have access to the parent page to be able to navigate to that piece of info. Thanks!