How to undo an option that I chose

As I was in the document section, and I was trying to create a Note, it ask me if marginal 3 can access my photos and I accidentally said don’t allow. So now I cannot select any photos from that one mistake. How can I undo this.

You can do it in the iOS or macOS permissions.

Google for “change photo permissions for app on iOS”