Enable enforcer with publicOnly flag

Enable enforcer with publicOnly flag