function accessibility_test_access

cis7 accessibility.module accessibility_test_access($op, $test)
cle7 accessibility.module accessibility_test_access($op, $test)
elmsmedia7 accessibility.module accessibility_test_access($op, $test)
icor7 accessibility.module accessibility_test_access($op, $test)
meedjum_blog7 accessibility.module accessibility_test_access($op, $test)
mooc7 accessibility.module accessibility_test_access($op, $test)

Access callback for accessibility test entities.

2 calls to accessibility_test_access()

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 165

Code

function accessibility_test_access($op, $test) {
  if ($op == 'edit' || $op == 'delete') {
    return user_access('administer accessibility tests');
  }
  return user_access('view accessibility tests');
}