Setting custom permissions in a view on a per-display basis Context


D7
Views (latest version as of this writing 2017-02)


Scenario


SingerRegarn has a D7 view with five displays, where the access control on each display is set to:


Access:Permission | View published content

SingerRegarn creates another display, but she wants access control to be set to:


Access:Permission | Administer users

SingerRegarn configures the permissions for the newly created display, using the setting:


For: This page (override)

SingerRegarn then saves the newly created display.  


Problem


After saving the newly created display, the permissions for the newly created display do not differ from the other displays, as desired.


Question


Is there a bug-fix or workaround to prevent this unexpected behavior?


See also


https://www.drupal.org/node/1174588
https://www.drupal.org/node/1380402
In Drupal 7 Views how do you set permissions via roles for an attachment display?
Okay, so I put this to the test, using you example. I did not experience any unexpected results. I created 3 displays and set 2 of the displays to Access:Permission | View published content. For the 3rd display, I set it to Access:Role | administrator. When I'm logged in as an Administrator, I can view all three display pages. However, when I try to view the 3rd display page as an unauthenticated user, it returns an access denied error. Displays 1-2 remain visible to an unauthenticated user. 

My configuration of display 1-2:



What my view page looks like for display 1-2 (viewed as unauthenticated user):



My configuration of display 3:



View page for display 3 (viewed as unauthenticated user):



I'd double check your configuration to make sure it's correct! If you're still having issues, you could output your displays as blocks. Then you could apply permissions on those blocks using the admin/structure/block interface. You can also plug in view blocks into something like a Panel page, and apply permissions to your Panel pages.