You are here

function avatar_selection_access in Avatar Selection 5

Same name and namespace in other branches
  1. 5.2 avatar_selection.module \avatar_selection_access()
  2. 6 avatar_selection.module \avatar_selection_access()

Implementation of hook_access().

File

./avatar_selection.module, line 36

Code

function avatar_selection_access($op, $node) {
  if ($op == 'view') {
    return user_access('access avatars');
  }
  else {
    if ($op == 'create' || $op == 'update' || $op == 'delete') {
      return user_access('administer avatar selection');
    }
  }
}