You are here

public function FlexiformAccess::checkAccess in Flexiform 7

Check the Acces for this flexiforms.

File

includes/flexiform.access.inc, line 53
Contains FlexiformAccess

Class

FlexiformAccess
Control access conditions for Flexiforms.

Code

public function checkAccess($base_entity = NULL) {
  $contexts = $this
    ->prepareContexts($base_entity);
  $ctools_settings = $this
    ->getCtoolsSettings();
  $access = ctools_access($ctools_settings, $contexts);
  return $access;
}