Sorry for the late reply, this should fix things for you.
Potions still affect mobs from a dispenser?
Hopefully this is what you needed. ...After looking into this a little bit I realized this may not work the way you intended, if that's the case,...
Permission for using the command?
Separate names with a comma.