You are here

function support_access_user_tickets in Support Ticketing System 7

Same name and namespace in other branches
  1. 6 support.module \support_access_user_tickets()

Menu callback.

2 string references to 'support_access_user_tickets'
support_menu in ./support.module
Implementation of hook_menu().
support_overview_menu in support_overview/support_overview.module
Implements hook_menu().

File

./support.module, line 680
support.module

Code

function support_access_user_tickets($account = array()) {
  global $user;
  if (user_access('administer support') || user_access('edit any support_ticket content') || user_access('create support_ticket content') && $account->uid == $user->uid) {
    return TRUE;
  }
  return FALSE;
}