You are here

public function JuiceboxXmlViewsStyle::access in Juicebox HTML5 Responsive Image Galleries 7.2

Check access to the Drupal data that will be used to build the gallery.

Return value

boolean Returns TRUE if access is allowed for the current user and FALSE if not. Can also return NULL if access cannot be determined.

Overrides JuiceboxXmlInterface::access

File

plugins/JuiceboxXmlViewsStyle.inc, line 52
Juicebox XML loader that's used to load (and build via loaded methods) the XML associated with a Drupal views style formatter plugin.

Class

JuiceboxXmlViewsStyle
Class to load and build the XML associated with a Drupal views style formatter plugin.

Code

public function access() {

  // Check access directly through view methods. This should work no matter
  // what state the view is in (executed or not, etc.).
  return $this->view
    ->access($this->viewDisplay);
}