Custom Access on Views Blocks in Drupal
Overview
Views in Drupal are an excellent way to create blocks to be displayed on the page. Views comes with the ability to set access based on a permission through the UI, however sometimes a more customized set of access rules is required, rather than just a single permission. In this tutorial, two approaches will be looked at to provide custom access to a Drupal Views block.
Scenario
The scenario being looked at for this tutorial is as follows: