If this is a webpart property on a Path, this is what you'll probably need to do for validation.
First, get the value using {% PropertyName %} in which case, should be "Path"
Next we need to do a lookup on that object, you can do this through the Documents[PathHere], or:
{% Documents[Path].ClassName == "the.Class" |(identity)GlobalAdministrator%}
Try that!