You are here

function forena_user_access_check in Forena Reports 8

2 calls to forena_user_access_check()
DataManager::listRepos in src/DataManager.php
ReportEditor::editorLinks in src/Editor/ReportEditor.php
6 string references to 'forena_user_access_check'
DataSourceDefinitionForm::buildForm in src/Form/DataSourceDefinitionForm.php
[@inheritdoc}
DataSourceDefinitionForm::submitForm in src/Form/DataSourceDefinitionForm.php
[@inheritdoc}
forena_data_settings_save in forena_ui/forena.admin.inc
Submit handler to cause save events to happen. Enter description here ...
settings.php in data/sample/settings.php
settings.php in data/drupal/settings.php

... See full list

File

./forena.module, line 73

Code

function forena_user_access_check($right) {

  // Get the current user
  $user = \Drupal::currentUser();

  // Check for permission
  return $user
    ->hasPermission(trim($right));
}