Adding the function ps_is_consumer_enabled which returns whether a consu...

...mer is enabled taking the consumer hierarchy into consideration