Which one will take precedence over other "GlobalNetworkPolicy or NetworkPolicy"

Hi,

We would like to understand what if we apply two different policies for the same endpoint(lets say pod), for instance, we apply "deny "policy using “GlobalNetworkPolicy” and “allow” policy for the same endpoint using “NetworkPolicy”. Which one will take precedence over the other?