You are here

function _support_validate_assigned_user in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support.module \_support_validate_assigned_user()

Be sure a valid user is being assigned to a ticket.

2 calls to _support_validate_assigned_user()
support_comment in ./support.module
Implementation of hook_comment().
support_nodeapi in ./support.module
Implementation of hook_nodeapi().

File

./support.module, line 483
support.module

Code

function _support_validate_assigned_user($uid, $client) {
  $account = user_load(array(
    'uid' => $uid,
  ));
  return user_access("access {$client} tickets", $account) || user_access('administer support', $account);
}