It's written in Domain Views's README.txt:

5. Access Plugin

Domain Views offers an access plugin to all Views that allow you to select
on which domains a View may be accessed.

This setting is valuable for cases where certain Views are not appropriate
on all domains.

But I can't find it when I edit a view.
I want a view's display A to be viewable from domain A and the same view's display B to be viewable from domain B.
Thanks for your help.

Comments

agentrickard’s picture

Status: Active » Closed (fixed)
StatusFileSize
new52.77 KB
new48.04 KB

Under 'access' in the View settings. See attached.

It appears, however, that access settings are applied to all displays in a View, so you would need to create two separate Views.

anrikun’s picture

Category: support » feature

Thank you very much for your help.
It would be great if access settings could be applied per display.

agentrickard’s picture

That is a Views feature request.

anrikun’s picture

Title: Where is the Domain Views Access Plugin? » Warning when using Domain Views Access Plugin
Component: Documentation » Miscellaneous
Category: feature » support
Status: Closed (fixed) » Active

Actually, it seems that it's possible to set domain access settings only for a display and not the others.
But now I have another error:
Access is denied with a warning

warning: Invalid argument supplied for foreach() in /xxx/sites/all/modules/domain/domain_views/domain_views.module on line 75.

Might be related to another module I'm using. Will check that.

agentrickard’s picture

Category: support » bug

Testing... Which is odd, because the plugin is in a different file, so that error means domain_views_get_grants() is returning nothing.

Are you using Domain Strict and hitting the View as an anonymous user? Do you have domains configured?

agentrickard’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB

I got it, I was doing some dumb variable handling in the function. Here's a patch.

Nice catch!

agentrickard’s picture

Status: Needs review » Fixed

Committed to HEAD.

anrikun’s picture

Status: Fixed » Active

Still got the same error after applying patch.
For instance, when accessing /user page as an anonymous user, the same warning is displayed on top of the logging form:

warning: Invalid argument supplied for foreach() in /xxx/sites/all/modules/domain/domain_views/domain_views.module on line 75.

Will try HEAD version.

agentrickard’s picture

Status: Active » Needs review

You may also need #509536: Clean up error handling, documentation. which is in HEAD and cleans up some other array handling.

anrikun’s picture

Status: Needs review » Fixed

You're right. Warning is gone. Thanks! :-)

agentrickard’s picture

Yeah. I split the patches for clarity, which caused the confusion.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.