You are here

function legal_access in Legal 6.7

Same name and namespace in other branches
  1. 5 legal.module \legal_access()
  2. 6.8 legal.module \legal_access()
  3. 7.2 legal.module \legal_access()
  4. 7 legal.module \legal_access()

Implementation of hook_access().

File

./legal.module, line 31

Code

function legal_access($op, $node, $account) {
  if ($op == 'view' && (user_access('view Terms and Conditions') || user_access('administer Terms and Conditions'))) {
    return TRUE;
  }
}