You are here

function apachesolr_multilingual_textfile_access in Apache Solr Multilingual 6.2

Same name and namespace in other branches
  1. 6 apachesolr_multilingual_textfile/apachesolr_multilingual_textfile.module \apachesolr_multilingual_textfile_access()

File

apachesolr_multilingual_textfile/apachesolr_multilingual_textfile.module, line 473

Code

function apachesolr_multilingual_textfile_access($op, $node, $account) {
  switch ($op) {
    case 'view':
      return user_access('view apachesolr_multilingual_textfile', $account);
      break;
    case 'create':
      return user_access('create apachesolr_multilingual_textfile', $account);
      break;
    case 'update':
      return user_access('edit apachesolr_multilingual_textfile', $account);
      break;
    case 'delete':
      return user_access('delete apachesolr_multilingual_textfile', $account);
      break;
  }
  return FALSE;
}