Permission locked trigger command

I want to make a trigger that only works if the player is an operator. I want to do it this way so there's a better user experience than using a function (there's a lot of functions in my pack and it might be hard to tell which functions the player should use). Is there a way to detect this?
Continue to help post