restrict datapack /trigger command to specific people via tags?

Hi, new to datapacks but trying to implement this datapack on an SMP

https://modrinth.com/datapack/transfer-pet-owner

Would it be possible to give staff a certain tag, and then restrict the trigger to only run if executed by a tagged player?

Continue to help post