store dialog text input

hello i want to make dialog with text input then store the input somewhere but the porblem is if player does not have permission to run the commands then i cannot run specific command to store the input
Continue to help post