You are here

function support_access_clients in Support Ticketing System 7

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

Custom permissions function.

5 calls to support_access_clients()
support_node_access in ./support.module
Implementation of hook_node_access().
support_reference_autocomplete in support_reference/support_reference.module
@todo: should we allow cross-client references?
support_reference_block_form_submit in support_reference/support_reference.module
support_reference_block_view in support_reference/support_reference.module
Implements hook_block_view().
support_subscribe_user in ./support.module
Subscribe a user to a ticket.
2 string references to 'support_access_clients'
support_menu in ./support.module
Implementation of hook_menu().
support_pm_menu in support_pm/support_pm.module
Implements hook_menu(). TODO: Include date in 'view' and 'edit' tabs


./support.module, line 623


function support_access_clients($client = NULL, $account = NULL) {
  if (is_object($client)) {
    if (is_object($account)) {
      return user_access('administer support', $account) || user_access("access {$client->name} tickets", $account);
    else {
      return user_access('administer support') || user_access("access {$client->name} tickets");
  else {
    return _support_access_tickets();