Hi,
I have a drupal commerce instance on two domains. Say DomainA and DomainB.
I have a view which is on both domains showing node info: content:body and product info product: (product) field: image.

When I add the filter: Domains: Domain ID (= DomainA). I see a difference between the views on the Domains.
On DomainA I see the correct view.
On DomainB I see only the node-info (content: body etc..) from the view.

I would expect not to see the view at all on DomainB because I filtered on DomainA?
Next to this I would also not expect the content: information, because on all nodes I have put the domain access info to only DomainA.
When I mouseover the node-url on DomainB, the nodes are redirected to DomainA, but I would have expected not to see the node-info at all on DomainB.

Are these correct assumptions. Wouldn't it be correct to not see the view at all on DomainB?

Sorry if my assumptions are incorrect.
Greetings, Martijn

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

If you want to hide the view entirely on DomainB, use an access condition.

I am under the impression that Commerce entities are not nodes and therefore don't respect node access. Without seeing a copy of the View, there isn't much support I can offer here. (Check, of course, that you aren't user 1 or someone who can "bypass node access", too.)

Summit’s picture

Hi, thanks for your quick reply! I can send you the view, but it is a combined commerce node, commerce entities view. Can you deal with that?
What do you mean by an access condition?

The commerce entities (products) are non-accessible by DomainB using this sandbox module: http://drupal.org/sandbox/delta/1674202
The problem is the "normal" commerce nodes (also named commerce product displays) and some info of the commerce product. They somehow seem to be shown in the view with Domain Views filter on, while they are as nodes or products not accessible on DomainB what is expected behavior

Greetings, Martijn

Summit’s picture

Hi,

This on works: Domain Access: Available on current domain (True)! But this one doesn't work: Domains: Domain ID (= DomainA)
Maybe there is something wrong by using the url?

greetings, Martijn

agentrickard’s picture

I suspect the issue is that Domain Access Entity might need to offer Views support.

For access conditions, see the center column of the Views interface. "Domain" is an access condition you can setup.