When you mark a file as private that file only can be accessed for current user, idk how you can customize this behavior, because if a user have the direct link of file he can access the file anyway