Run function without op

I made a datapack for an SMP I'm on that lets you use "classes" that give you potion effects. How would I make it so that the change function can be run through a command without op?

Continue to help post